mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-29 12:16:18 +08:00
Merge pull request #86 from inkarkat/fix-insert-mode-plug-mapping
Fix insert-mode <plug>NERDCommenterInsert mapping.
This commit is contained in:
commit
06cf7e7c38
|
@ -300,7 +300,7 @@ between them.
|
|||
|
||||
NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this
|
||||
mapping add >
|
||||
let NERDComInsertMap='<c-c>'
|
||||
imap <C-c> <plug>NERDCommenterInsert
|
||||
<
|
||||
to your vimrc.
|
||||
|
||||
|
|
|
@ -2760,6 +2760,8 @@ call s:CreateMaps('i', 'Insert', 'Insert Comment Here', '')
|
|||
call s:CreateMaps('', ':', '-Sep3-', '')
|
||||
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)
|
||||
nnoremap <plug>NERDCommenterAltDelims :call <SID>SwitchToAlternativeDelimiters(1)<cr>
|
||||
" vim: set foldmethod=marker :
|
||||
|
|
Loading…
Reference in New Issue
Block a user