ctrl-b to box in text mode

This commit is contained in:
Ville Rantanen
2015-08-12 15:04:59 +03:00
parent 6c5554dcff
commit 10b70fbe42
2 changed files with 4 additions and 2 deletions

View File

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

View File

@@ -1,7 +1,8 @@
#!/bin/bash #!/bin/bash
function helpexit() { function helpexit() {
echo Edit a file with check list mod of vim echo Edit a file with check list mod of vim.
echo "key 'b' adds a checkbox, space toggles the box" echo "Key 'b' inserts a checkbox, space toggles the box."
echo "Ctrl-b in editing mode inserts a checkbox."
echo All switches are passed on to vim. echo All switches are passed on to vim.
exit exit
} }