function! Box_clear () mapclear! map :call Flip_box()j^ map b i[ ] hhh map! [ ] 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 set filetype=markdown