mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-08 09:53:47 -05:00
Fix insert-mode <plug>NERDCommenterInsert mapping.
This was broken by the refactoring that introduced s:CreateMaps().
This commit is contained in:
@@ -300,7 +300,7 @@ between them.
|
|||||||
|
|
||||||
NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this
|
NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this
|
||||||
mapping add >
|
mapping add >
|
||||||
let NERDComInsertMap='<c-c>'
|
imap <C-c> <plug>NERDCommenterInsert
|
||||||
<
|
<
|
||||||
to your vimrc.
|
to your vimrc.
|
||||||
|
|
||||||
|
|||||||
@@ -2763,6 +2763,8 @@ call s:CreateMaps('i', 'Insert', 'Insert Comment Here', '')
|
|||||||
call s:CreateMaps('', ':', '-Sep3-', '')
|
call s:CreateMaps('', ':', '-Sep3-', '')
|
||||||
call s:CreateMaps('', ':help NERDCommenterContents<CR>', 'Help', '')
|
call s:CreateMaps('', ':help NERDCommenterContents<CR>', 'Help', '')
|
||||||
|
|
||||||
|
inoremap <silent> <plug>NERDCommenterInsert <SPACE><BS><ESC>:call NERDComment('i', "insert")<CR>
|
||||||
|
|
||||||
" switch to/from alternative delimiters (does not use wrapper function)
|
" switch to/from alternative delimiters (does not use wrapper function)
|
||||||
nnoremap <plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1)<cr>
|
nnoremap <plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1)<cr>
|
||||||
" vim: set foldmethod=marker :
|
" vim: set foldmethod=marker :
|
||||||
|
|||||||
Reference in New Issue
Block a user