mirror of
https://github.com/preservim/nerdcommenter.git
synced 2025-11-14 12:43:47 -05:00
update the mapping section of the doc
This commit is contained in:
@@ -750,16 +750,13 @@ See |NERDComAltDelim| for switching commenting styles at runtime.
|
|||||||
|
|
||||||
To change a mapping just map another key combo to the internal <plug> mapping.
|
To change a mapping just map another key combo to the internal <plug> mapping.
|
||||||
For example, to remap the *NERDComComment* mapping to ",omg" you would put
|
For example, to remap the *NERDComComment* mapping to ",omg" you would put
|
||||||
these lines in your vimrc: >
|
this line in your vimrc: >
|
||||||
nmap ,omg <plug>NERDCommenterComment
|
map ,omg <plug>NERDCommenterComment
|
||||||
vmap ,omg <plug>NERDCommenterComment
|
|
||||||
<
|
<
|
||||||
This will stop the corresponding default mappings from being created. Note: in
|
This will stop the corresponding default mappings from being created.
|
||||||
this case if you only override the nmap, then the default vmap will still be
|
|
||||||
created.
|
|
||||||
|
|
||||||
See the help for the mapping in question to see which <plug> mapping to
|
See the help for the mapping in question to see which <plug> mapping to
|
||||||
map to, and which modes it applies to.
|
map to.
|
||||||
|
|
||||||
See also |'NERDCreateDefaultMappings'|.
|
See also |'NERDCreateDefaultMappings'|.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user