diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 005dcd8..c42b8b5 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -3294,7 +3294,9 @@ execute 'nmap ' . g:NERDAppendComMap . ' :call NERDComment(0, "append")< execute 'nmap ' . g:NERDPrependComMap . ' :call NERDComment(0, "prepend")' " set up the mapping to insert comment delims at the cursor position in insert mode -execute 'inoremap ' . g:NERDComInInsertMap . ' ' . ':call NERDComment(0, "insert")' +if g:NERDComInInsertMap != '' + execute 'inoremap ' . g:NERDComInInsertMap . ' ' . ':call NERDComment(0, "insert")' +endif " Section: Menu item setup {{{1 " ===========================================================================