Skip to content

Instantly share code, notes, and snippets.

@h1mesuke
Created September 23, 2011 13:17
Show Gist options
  • Save h1mesuke/1237302 to your computer and use it in GitHub Desktop.
Save h1mesuke/1237302 to your computer and use it in GitHub Desktop.
"-----------------------------------------------------------------------------
" Comment-out
" caw.vim
" https://github.com/tyru/caw.vim
let g:caw_sp_i = ''
let g:caw_sp_I = ''
let g:caw_i_startinsert_at_blank_line = 0
let g:caw_I_startinsert_at_blank_line = 0
" Encomment / Decomment
xmap <silent> / <Plug>(caw:i:toggle)
xmap <silent> ,,/ "vygv<Plug>(caw:i:comment)`>p0
" Encomment
xmap <silent> # <Plug>(caw:I:comment)
xmap <silent> ,,# "vy`>pgv<Plug>(caw:I:comment)`[0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment