function! Box_clear () mapclear! map :call Flip_box() map b i[ ] hhh 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