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:
Ingo Karkat 2014-06-24 16:28:41 +02:00
parent c83bfb20bc
commit d578e14e89

View File

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