rename vimbox
This commit is contained in:
18
vim/markdown.vim
Normal file
18
vim/markdown.vim
Normal 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
|
||||
Reference in New Issue
Block a user