From 89c008b6441482d1d32c8d2b854c27c2640730cb Mon Sep 17 00:00:00 2001 From: Martin Grenfell Date: Sat, 19 Jul 2008 21:02:52 +1200 Subject: [PATCH] disable the ctrl-c mapping by default --- doc/NERD_commenter.txt | 13 +++++++++++-- plugin/NERD_commenter.vim | 2 +- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/doc/NERD_commenter.txt b/doc/NERD_commenter.txt index 7f13fbf..2ef1e51 100644 --- a/doc/NERD_commenter.txt +++ b/doc/NERD_commenter.txt @@ -111,8 +111,9 @@ Adds comment delimiters to the start of line and goes into insert mode between them. - |NERDComInsertComment| + |NERDComInsertComment| Adds comment delimiters at the current cursor position and inserts between. +Disabled by default. ,ca |NERDComAltDelim| @@ -288,13 +289,19 @@ insert mode between the new delimiters. ------------------------------------------------------------------------------ 2.2.11 Insert comment map *NERDComInsertComment* -Default mapping: +Default mapping: disabled by default. Change the mapping with: NERDComInInsertMap. Applicable modes: insert. Adds comment delimiters at the current cursor position and inserts between them. +NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this +mapping add > + let NERDComInsertMap='' +< +to your vimrc. + ------------------------------------------------------------------------------ 2.2.12 Use alternate delims map *NERDComAltDelim* @@ -858,6 +865,8 @@ if your face looked like a toaster and a t-rex put together? :( - add support for stata. Thanks to Jerónimo Carballo. - applied a patch from ewfalor to fix an error in the help file with the NERDMapleader doc + - disable the insert mode ctrl-c mapping by default, see :help + NERDComInsertComment if you wish to restore it 2.1.16 - compatibility fix for vim7.2, cheers to Ben Schmidt, David Fishburn, and diff --git a/plugin/NERD_commenter.vim b/plugin/NERD_commenter.vim index 66a255f..8716cd7 100644 --- a/plugin/NERD_commenter.vim +++ b/plugin/NERD_commenter.vim @@ -77,7 +77,7 @@ call s:InitVariable("g:NERDAppendComMap", g:NERDMapleader . 'A') call s:InitVariable("g:NERDComAlignBothMap", g:NERDMapleader . 'b') call s:InitVariable("g:NERDComAlignLeftMap", g:NERDMapleader . 'l') call s:InitVariable("g:NERDComAlignRightMap", g:NERDMapleader . 'r') -call s:InitVariable("g:NERDComInInsertMap", '') +call s:InitVariable("g:NERDComInInsertMap", '') call s:InitVariable("g:NERDComLineInvertMap", g:NERDMapleader . 'i') call s:InitVariable("g:NERDComLineMap", g:NERDMapleader . 'c') call s:InitVariable("g:NERDComLineNestMap", g:NERDMapleader . 'n')