change key

This commit is contained in:
ville rantanen
2015-04-02 13:05:19 +03:00
parent ad96dc98e4
commit 9425f984e6

View File

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