Let's say I have a file like this
(abc)
(123)
(456)
I want to yank abc
and paste it in place of 123
and 456
.
I would yi)
on the first line. Then go down a line and paste it with vi)p
.
But for the 456
, vim will paste the last visual selected text which is 123
instead of abc
. The file is now looks like this:
(abc)
(abc)
(123)
This can be solve by specify a register before the yank/paste operation but I usually forget to include it. Is there anyway I can prevent vim visual select from yanking selected text?