rename vimbox

This commit is contained in:
ville rantanen
2017-06-07 10:50:24 +03:00
parent cd20e1d90e
commit cdbe32d534
4 changed files with 3 additions and 2 deletions

18
vim/markdown.vim Normal file
View File

@@ -0,0 +1,18 @@
function! Box_clear ()
mapclear!
map <space> :<C-U>call Flip_box()<CR>j^
imap <C-b> [ ]
set laststatus=2
set statusline=%f\ %=\ ([x]\ spc,^b)\ (%v,%l)
hi StatusLine ctermfg=cyan ctermbg=black
endfunction
call Box_clear()
function! Flip_box ()
s!\[ \]![xXx]!eg
s!\[x\]![ ]!eg
s!\[xXx\]![x]!eg
endfunction
set filetype=markdown
set tabstop=4