Simple plugin that toggles text checkboxes in Vim. Works great if you're using a markdown file for notes and todo lists.
Just copy the script into your plugin folder, e.g. ~/.vim/plugin/
.
Type <leader>tt
to toggle the (first) checkbox on the current line. A checkbox
is either [ ]
(unchecked) or [x]
(checked). For example,
* [ ] Do some work.
becomes
* [x] Do some work.
and vice versa.