commit ada43fc1258b02f3bd2ce637744d15d26b2dcd21
parent 6fc7e63aa02f133899edf06af5d37da3c9dcb3ee
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 22 Feb 2016 12:30:59 -0800
toggle checklist state with SPACE-X
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.vimrc b/.vimrc
@@ -382,6 +382,10 @@ nmap <leader>j <C-w>j
nmap <leader>k <C-w>k
nmap <leader>l <C-w>l
+" toggle x mark in checklist fields
+nmap <leader>X :s/\[[x ]\]/\=submatch(0) == '[x]' ? '[ ]': '[x]'/<CR>
+
+" neovim-specific mappings
if has('nvim')
" escape from terminal mode
tnoremap <leader>e <C-\><C-n>