change key
This commit is contained in:
@@ -1,16 +1,16 @@
|
|||||||
function! Box_clear ()
|
function! Box_clear ()
|
||||||
mapclear!
|
mapclear!
|
||||||
map <space> :<C-U>call Flip_box()<CR>
|
map <space> :<C-U>call Flip_box()<CR>
|
||||||
map a i[ ] <ESC>hhh
|
map b i[ ] <ESC>hhh
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set statusline=%f\ %=\ \[ChkB[x]\ spc,a]\ (%v,%l)
|
set statusline=%f\ %=\ \[ChkB[x]\ spc,b]\ (%v,%l)
|
||||||
endfunction
|
endfunction
|
||||||
call Box_clear()
|
call Box_clear()
|
||||||
|
|
||||||
function! Flip_box ()
|
function! Flip_box ()
|
||||||
s!\[ \]![xXx]!e
|
s!\[ \]![xXx]!eg
|
||||||
s!\[x\]![ ]!e
|
s!\[x\]![ ]!eg
|
||||||
s!\[xXx\]![x]!e
|
s!\[xXx\]![x]!eg
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user