mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-02-21 04:08:07 +08:00
dont map the insert comment map if the key isnt set
This commit is contained in:
parent
01d6c8c7f6
commit
2e9b7ca58e
@ -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
|
||||
" ===========================================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user