From 10b70fbe4279e469909c6f8ff071b024b0d2ecd0 Mon Sep 17 00:00:00 2001 From: Ville Rantanen Date: Wed, 12 Aug 2015 15:04:59 +0300 Subject: [PATCH] ctrl-b to box in text mode --- vim/checklist.vim | 1 + vim/vimbox | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/vim/checklist.vim b/vim/checklist.vim index e3067b7..52f1750 100644 --- a/vim/checklist.vim +++ b/vim/checklist.vim @@ -2,6 +2,7 @@ function! Box_clear () mapclear! map :call Flip_box() map b i[ ] hhh + map! [ ] set laststatus=2 set statusline=%f\ %=\ \[ChkB[x]\ spc,b]\ (%v,%l) endfunction diff --git a/vim/vimbox b/vim/vimbox index 4d03af6..4cbb50a 100755 --- a/vim/vimbox +++ b/vim/vimbox @@ -1,7 +1,8 @@ #!/bin/bash function helpexit() { - echo Edit a file with check list mod of vim - echo "key 'b' adds a checkbox, space toggles the box" + echo Edit a file with check list mod of vim. + 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. exit }