From f4b1a46a417af0a5ca577efbb998c96bfa4288cc Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Tue, 23 Oct 2012 15:19:36 +0200 Subject: [PATCH] Fix insert-mode NERDCommenterInsert mapping. This was broken by the refactoring that introduced s:CreateMaps(). --- doc/NERD_commenter.txt | 2 +- plugin/NERD_commenter.vim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 5560fcc..151ea29 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -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='' + imap NERDCommenterInsert < to your vimrc. diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 4efd0c1..978bd32 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -2763,6 +2763,8 @@ call s:CreateMaps('i', 'Insert', 'Insert Comment Here', '') call s:CreateMaps('', ':', '-Sep3-', '') call s:CreateMaps('', ':help NERDCommenterContents', 'Help', '') +inoremap NERDCommenterInsert :call NERDComment('i', "insert") + " switch to/from alternative delimiters (does not use wrapper function) nnoremap NERDCommenterAltDelims :call SwitchToAlternativeDelimiters(1) " vim: set foldmethod=marker :