From d578e14e895065d79c087b2f8542cbfdad603596 Mon Sep 17 00:00:00 2001 From: Ingo Karkat Date: Tue, 24 Jun 2014 16:28:41 +0200 Subject: [PATCH] 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 (Exchange) can and should be defined for both.) --- plugin/exchange.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/exchange.vim b/plugin/exchange.vim index d552717..b564ccd 100644 --- a/plugin/exchange.vim +++ b/plugin/exchange.vim @@ -210,6 +210,6 @@ if exists('g:exchange_no_mappings') endif call s:create_map('n', 'cx', '(Exchange)') -call s:create_map('v', 'X', '(Exchange)') +call s:create_map('x', 'X', '(Exchange)') call s:create_map('n', 'cxc', '(ExchangeClear)') call s:create_map('n', 'cxx', '(ExchangeLine)')