diff --git a/.config/vim/vimrc b/.config/vim/vimrc index 84c4224..a76924b 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -67,11 +67,13 @@ nnoremap l " Substitute command if (exists('+inccommand') && &inccommand != '') nnoremap S :%s/ + vnoremap S :s/ 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 endif " Interact with the system clipboard