diff --git a/.config/vim/vimrc.d/40-keys.vim b/.config/vim/vimrc.d/40-keys.vim index bd8490b..4737572 100644 --- a/.config/vim/vimrc.d/40-keys.vim +++ b/.config/vim/vimrc.d/40-keys.vim @@ -27,13 +27,13 @@ nnoremap ! T " Substitute command if (exists('+inccommand') && &inccommand != '') nnoremap S :%s/ - vnoremap S :s/ + vnoremap S :s/\%V else " This does not work with live previewing commands (inccommand) since the " replace pattern is already defined and thus everything matching the search " pattern is just deleted. nnoremap S :%s//gc - vnoremap S :s//gc + vnoremap S :s/\%V/gc endif " Interact with the system clipboard