VIM stuff to be added as scripts

This commit is contained in:
q
2015-04-02 07:23:10 +03:00
parent 5fca6e0ba6
commit 85928b7326
3 changed files with 159 additions and 0 deletions

19
vim/checklist.vim Normal file
View File

@@ -0,0 +1,19 @@
" alias vimbox="vim -S ~/BTSync/Homeshare/lib/chkl.vim"
map cr :so chkl.vim<CR>
function! Box_clear ()
mapclear!
map <space> :<C-U>call Flip_box()<CR>
map a i[ ] <ESC>
set laststatus=2
set statusline=%f\ %=\ \[ChkLst\ spc,a]\ (%v,%l)\ HEX:%B
endfunction
call Box_clear()
function! Flip_box ()
s!^\(\s*\)\[ \]!\1[xXx]!e
s!^\(\s*\)\[x\]!\1[ ]!e
s!\[xXx\]![x]!e
endfunction