vim: handle commenting with Commentary

This commit is contained in:
2019-11-22 13:48:32 +00:00
parent f6f71cced2
commit 6e5bbca633

6
vimrc
View File

@@ -147,10 +147,6 @@ augroup END
augroup cprog
au!
au BufRead,BufNewFile *.[ch] set cindent
" simulate C++ comments (sort of) and provide a means to uncomment easily
map // ^i/* <ESC>$a */<ESC>
map \\ bhh/ *[*][/]<CR>d/[/]<CR>x?[/][*]<CR>dw
" map // 0v$gc
call TabSize(4)
augroup END
@@ -324,6 +320,8 @@ nnoremap <leader>b :b #<CR>
map <F8> :split<CR>
map <F9> :only<CR>
map // gc$
" map <F11> :cal SetSyn("c")<CR>
" map <F11> :syntax sync fromstart<CR>
nnoremap <leader>ss :syntax sync fromstart<CR>