Do not create a select mode default mapping.
In select mode (the variant of visual mode), any printable characters should override the selection (see below :help v_CTRL-G), so no such mappings should exist. Limit the default visual mode mapping to visual mode (:xmap). (The <Plug>(Exchange) can and should be defined for both.)
This commit is contained in:
parent
c83bfb20bc
commit
d578e14e89
@ -210,6 +210,6 @@ if exists('g:exchange_no_mappings')
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
call s:create_map('n', 'cx', '<Plug>(Exchange)')
|
call s:create_map('n', 'cx', '<Plug>(Exchange)')
|
||||||
call s:create_map('v', 'X', '<Plug>(Exchange)')
|
call s:create_map('x', 'X', '<Plug>(Exchange)')
|
||||||
call s:create_map('n', 'cxc', '<Plug>(ExchangeClear)')
|
call s:create_map('n', 'cxc', '<Plug>(ExchangeClear)')
|
||||||
call s:create_map('n', 'cxx', '<Plug>(ExchangeLine)')
|
call s:create_map('n', 'cxx', '<Plug>(ExchangeLine)')
|
||||||
|
Loading…
Reference in New Issue
Block a user