diff --git a/mappings.vim b/mappings.vim index da0781e..4b2272e 100644 --- a/mappings.vim +++ b/mappings.vim @@ -174,4 +174,7 @@ nnoremap call utils#SwitchLine(line('.'), 'down') " Move current visual-line selection up and down xnoremap :call utils#MoveSelection('up') xnoremap :call utils#MoveSelection('down') + +" Replace visual selection with text in register, but not contaminate the register. +xnoremap p "_cp "}