Add documentation for overriding maps

This commit is contained in:
Tom McDonald 2013-12-21 23:00:46 -05:00
parent 855b57077e
commit 1626560482

View File

@ -48,17 +48,25 @@ It should be noted that I don't actually go by that nickname.
SETTINGS *exchange-settings* SETTINGS *exchange-settings*
*g:exchange_no_mappings* To change the default mappings, simply provide your own mappings to the
g:exchange_no_mappings ~ commands below. The default mappings are as follows:
If this variable is defined, the default keyboard mappings will not be loaded.
You are then free to define your own. The default mappings are as follows:
nmap cx <Plug>Exchange nmap cx <Plug>Exchange
vmap cx <Plug>Exchange vmap cx <Plug>Exchange
nmap cxc <Plug>ExchangeClear nmap cxc <Plug>ExchangeClear
nmap cxx <Plug>ExchangeLine nmap cxx <Plug>ExchangeLine
For example, to change the mapping for exchanging a line, use the following:
nmap cX <Plug>ExchangeLine
This will use the mapping `cX`, and the default `cxx` will not be mapped.
*g:exchange_no_mappings*
g:exchange_no_mappings ~
If this variable is defined, the default mappings will not be created.
ISSUES AND TODO *exchange-issues* ISSUES AND TODO *exchange-issues*
*exchange-todo* *exchange-todo*