From ad7be7b50aebb03999fa3be38fc6fdde2899f7ba Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 5 Nov 2017 00:17:18 +1300 Subject: Add explanatory note for choosing imperfect remap 'vnoremap' also includes select mode, which I very seldom use anyway; in this context it's not worth breaking compatibility with old Vims to use the more accurate 'xnoremap'. --- vim/config/substitution.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'vim/config/substitution.vim') diff --git a/vim/config/substitution.vim b/vim/config/substitution.vim index f2d7b665..415665ef 100644 --- a/vim/config/substitution.vim +++ b/vim/config/substitution.vim @@ -3,6 +3,9 @@ nnoremap \ & \ :&& -xnoremap + +" Same again for visual mode; we use vnoremap rather than xnoremap to stay +" compatible with old Vims without doing eval() dances +vnoremap \ & \ :&& -- cgit v1.2.3