From 7462b5a7af309197a99db93186ecfd2fb4d50e15 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 22 Mar 2023 13:19:41 +0100 Subject: [PATCH] vim:keys: Remove uses behind is not needed when using for visual mappings. Fix: fc9874bf97ce ("vim:keys: Use for plain command mappings") --- .config/vim/vimrc.d/40-keys.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index 3ed0180..939b441 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -262,12 +262,12 @@ noremap ][ ]] " Strip trailing whitespace nnoremap silent! %s/\v\s+$// -vnoremap silent! '<,'>s/\v\s+$// +vnoremap silent! '<,'>s/\v\s+$// " Convert double quotes to single. Convert only pairs to lower the false " positive rate. nnoremap " silent! %s/\v"([^"]*)"/'\1'/g -vnoremap " silent! '<,'>s/\v"([^"]*)"/'\1'/g +vnoremap " silent! '<,'>s/\v"([^"]*)"/'\1'/g " Keep selection when changing the indentation in visual mode vnoremap > >gv