Files
q-tools/vim/checklist.vim
2015-08-12 15:04:59 +03:00

18 lines
325 B
VimL

function! Box_clear ()
mapclear!
map <space> :<C-U>call Flip_box()<CR>
map b i[ ] <ESC>hhh
map! <C-b> [ ]
set laststatus=2
set statusline=%f\ %=\ \[ChkB[x]\ spc,b]\ (%v,%l)
endfunction
call Box_clear()
function! Flip_box ()
s!\[ \]![xXx]!eg
s!\[x\]![ ]!eg
s!\[xXx\]![x]!eg
endfunction