update the mapping section of the doc

This commit is contained in:
Martin Grenfell
2008-09-21 12:55:08 +12:00
parent 1ae6bd4870
commit 5bf567d75e

View File

@@ -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'|.