vimrc(NERDCommenter): add <c-_> (ctrl+/) mapping

This commit is contained in:
surtur 2022-07-14 15:11:30 +02:00
parent b6559c44db
commit 400a73ba9b
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -186,6 +186,9 @@ let g:livepreview_engine = 'pdflatex -shell-escape -interaction=nonstopmode'
let g:vimtex_compiler_progname = 'pdflatex -shell-escape --interaction=nonstopmode'
let g:tex_flavor = 'latex'
" nerdcommenter
" _ stands for forward slash (/)
noremap <silent><c-_> :call nerdcommenter#Comment(0,"toggle")<CR>
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1
" Allow commenting and inverting empty lines (useful when commenting a region)