Merge pull request #20 from wellle/visual-X
Use X as visual mapping for Exchange
This commit is contained in:
commit
e2da5d3c1e
@ -21,7 +21,7 @@ Clear any {motion} pending for exchange.
|
||||
|
||||
### Notes about the mappings
|
||||
|
||||
* `cx` can also be used from visual mode, which is sometimes easier than coming
|
||||
* `X` can be used from visual mode, which is sometimes easier than coming
|
||||
up with the right {motion}
|
||||
* If you're using the same motion again (e.g. exchanging two words using
|
||||
`cxiw`), you can use `.` the second time.
|
||||
|
@ -20,7 +20,6 @@ cx{motion} Used in pairs.
|
||||
exchanged. Any valid {motion} can be used.
|
||||
SECOND USE: define the second region of text and
|
||||
perform the exchange.
|
||||
Can also be used in |visual-mode|.
|
||||
Note: If a region was defined accidentally, it can
|
||||
be cleared with |cxc|
|
||||
|
||||
@ -31,6 +30,9 @@ cxx Like |cx|, but for the current line. |linewise|
|
||||
cxc Clear any defined region of text (previously defined
|
||||
by a |cx| command)
|
||||
|
||||
*v_X* *exchange-visual*
|
||||
{visal}X Can be used in |visual-mode|.
|
||||
|
||||
EXAMPLES *exchange-examples*
|
||||
|
||||
In the text below, we will exchange everything inside the parentheses with
|
||||
|
@ -198,6 +198,6 @@ if exists('g:exchange_no_mappings')
|
||||
endif
|
||||
|
||||
call s:create_map('n', 'cx', '<Plug>(Exchange)')
|
||||
call s:create_map('v', 'cx', '<Plug>(Exchange)')
|
||||
call s:create_map('v', 'X', '<Plug>(Exchange)')
|
||||
call s:create_map('n', 'cxc', '<Plug>(ExchangeClear)')
|
||||
call s:create_map('n', 'cxx', '<Plug>(ExchangeLine)')
|
||||
|
Loading…
Reference in New Issue
Block a user