Permalink
Browse files

Fix insert-mode <plug>NERDCommenterInsert mapping.

This was broken by the refactoring that introduced s:CreateMaps().
  • Loading branch information...
1 parent 17168b0 commit f4b1a46a417af0a5ca577efbb998c96bfa4288cc @inkarkat inkarkat committed Oct 23, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 doc/NERD_commenter.txt
  2. +2 −0 plugin/NERD_commenter.vim
View
@@ -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.
@@ -2763,6 +2763,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 :

0 comments on commit f4b1a46

Please sign in to comment.