VIM stuff to be added as scripts
This commit is contained in:
19
vim/checklist.vim
Normal file
19
vim/checklist.vim
Normal 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user