vim: add vim-commentary

This commit is contained in:
2019-11-11 10:15:47 +00:00
parent 0097cf8ee6
commit 6198f5e1f6

2
vimrc
View File

@@ -29,6 +29,7 @@ call plug#begin('~/.vim/plugged')
" Plug 'Valloric/YouCompleteMe'
Plug 'dense-analysis/ale'
Plug 'tpope/vim-commentary'
Plug 'posva/vim-vue'
Plug 'ap/vim-css-color'
@@ -149,6 +150,7 @@ augroup cprog
" 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