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 814df6f..00263cd 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -2760,6 +2760,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 :