17 lines
312 B
VimL
17 lines
312 B
VimL
function! Box_clear ()
|
|
mapclear!
|
|
map <space> :<C-U>call Flip_box()<CR>
|
|
map a i[ ] <ESC>hhh
|
|
set laststatus=2
|
|
set statusline=%f\ %=\ \[ChkB[x]\ spc,a]\ (%v,%l)
|
|
endfunction
|
|
call Box_clear()
|
|
|
|
function! Flip_box ()
|
|
s!\[ \]![xXx]!e
|
|
s!^\(\s*\)\[x\]!\1[ ]!e
|
|
s!\[xXx\]![x]!e
|
|
endfunction
|
|
|
|
|