dont map the insert comment map if the key isnt set

This commit is contained in:
Martin Grenfell 2008-07-20 00:57:23 +12:00
parent 01d6c8c7f6
commit 2e9b7ca58e

View File

@ -3294,7 +3294,9 @@ execute 'nmap <silent>' . g:NERDAppendComMap . ' :call NERDComment(0, "append")<
execute 'nmap <silent>' . g:NERDPrependComMap . ' :call NERDComment(0, "prepend")<cr>'
" set up the mapping to insert comment delims at the cursor position in insert mode
execute 'inoremap <silent>' . g:NERDComInInsertMap . ' ' . '<SPACE><BS><ESC>:call NERDComment(0, "insert")<CR>'
if g:NERDComInInsertMap != ''
execute 'inoremap <silent>' . g:NERDComInInsertMap . ' ' . '<SPACE><BS><ESC>:call NERDComment(0, "insert")<CR>'
endif
" Section: Menu item setup {{{1
" ===========================================================================