/vim-md-checkbox

Toggle checkboxes easily in Vim/Neovim.

Primary LanguageVim scriptMIT LicenseMIT

Toggle checkboxes in Vim

This plugin introduces an elegant way to toggle checkboxes from the Normal mode on the current line.

Values:

- [ ] First checkbox
- [x] Second checkbox

Default mappings (only in markdown files):

nnoremap <silent> <leader>we :call <SID>ChangeCheckbox()<CR>
nnoremap <silent> <leader>wx :call <SID>DeleteCheckbox()<CR>

Default maps are disabled with the following option:

let g:checkbox_maps = 0