mirror of
https://github.com/preservim/nerdcommenter.git
synced 2024-11-29 20:24:14 +08:00
update the mapping section of the doc
This commit is contained in:
parent
1ae6bd4870
commit
5bf567d75e
|
@ -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.
|
||||
For example, to remap the *NERDComComment* mapping to ",omg" you would put
|
||||
these lines in your vimrc: >
|
||||
nmap ,omg <plug>NERDCommenterComment
|
||||
vmap ,omg <plug>NERDCommenterComment
|
||||
this line in your vimrc: >
|
||||
map ,omg <plug>NERDCommenterComment
|
||||
<
|
||||
This will stop the corresponding default mappings from being created. Note: in
|
||||
this case if you only override the nmap, then the default vmap will still be
|
||||
created.
|
||||
This will stop the corresponding default mappings from being created.
|
||||
|
||||
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'|.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user