mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-13 20:23:47 -05:00
disable the ctrl-c mapping by default
This commit is contained in:
@@ -111,8 +111,9 @@ Adds comment delimiters to the start of line and goes into insert mode between
|
|||||||
them.
|
them.
|
||||||
|
|
||||||
|
|
||||||
<C-c> |NERDComInsertComment|
|
|NERDComInsertComment|
|
||||||
Adds comment delimiters at the current cursor position and inserts between.
|
Adds comment delimiters at the current cursor position and inserts between.
|
||||||
|
Disabled by default.
|
||||||
|
|
||||||
|
|
||||||
,ca |NERDComAltDelim|
|
,ca |NERDComAltDelim|
|
||||||
@@ -288,13 +289,19 @@ insert mode between the new delimiters.
|
|||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.2.11 Insert comment map *NERDComInsertComment*
|
2.2.11 Insert comment map *NERDComInsertComment*
|
||||||
|
|
||||||
Default mapping: <C-c>
|
Default mapping: disabled by default.
|
||||||
Change the mapping with: NERDComInInsertMap.
|
Change the mapping with: NERDComInInsertMap.
|
||||||
Applicable modes: insert.
|
Applicable modes: insert.
|
||||||
|
|
||||||
Adds comment delimiters at the current cursor position and inserts
|
Adds comment delimiters at the current cursor position and inserts
|
||||||
between them.
|
between them.
|
||||||
|
|
||||||
|
NOTE: prior to version 2.1.17 this was mapped to ctrl-c. To restore this
|
||||||
|
mapping add >
|
||||||
|
let NERDComInsertMap='<c-c>'
|
||||||
|
<
|
||||||
|
to your vimrc.
|
||||||
|
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
2.2.12 Use alternate delims map *NERDComAltDelim*
|
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.
|
- add support for stata. Thanks to Jerónimo Carballo.
|
||||||
- applied a patch from ewfalor to fix an error in the help file with the
|
- applied a patch from ewfalor to fix an error in the help file with the
|
||||||
NERDMapleader doc
|
NERDMapleader doc
|
||||||
|
- disable the insert mode ctrl-c mapping by default, see :help
|
||||||
|
NERDComInsertComment if you wish to restore it
|
||||||
|
|
||||||
2.1.16
|
2.1.16
|
||||||
- compatibility fix for vim7.2, cheers to Ben Schmidt, David Fishburn, and
|
- compatibility fix for vim7.2, cheers to Ben Schmidt, David Fishburn, and
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ call s:InitVariable("g:NERDAppendComMap", g:NERDMapleader . 'A')
|
|||||||
call s:InitVariable("g:NERDComAlignBothMap", g:NERDMapleader . 'b')
|
call s:InitVariable("g:NERDComAlignBothMap", g:NERDMapleader . 'b')
|
||||||
call s:InitVariable("g:NERDComAlignLeftMap", g:NERDMapleader . 'l')
|
call s:InitVariable("g:NERDComAlignLeftMap", g:NERDMapleader . 'l')
|
||||||
call s:InitVariable("g:NERDComAlignRightMap", g:NERDMapleader . 'r')
|
call s:InitVariable("g:NERDComAlignRightMap", g:NERDMapleader . 'r')
|
||||||
call s:InitVariable("g:NERDComInInsertMap", '<C-c>')
|
call s:InitVariable("g:NERDComInInsertMap", '')
|
||||||
call s:InitVariable("g:NERDComLineInvertMap", g:NERDMapleader . 'i')
|
call s:InitVariable("g:NERDComLineInvertMap", g:NERDMapleader . 'i')
|
||||||
call s:InitVariable("g:NERDComLineMap", g:NERDMapleader . 'c')
|
call s:InitVariable("g:NERDComLineMap", g:NERDMapleader . 'c')
|
||||||
call s:InitVariable("g:NERDComLineNestMap", g:NERDMapleader . 'n')
|
call s:InitVariable("g:NERDComLineNestMap", g:NERDMapleader . 'n')
|
||||||
|
|||||||
Reference in New Issue
Block a user