What is the best way replace multiple lines with the contents of the clipboard?
The problem I\'m having is when I yank a line and paste it over another line the \"yank\
Instead of using copy/paste, it is often better to use a text object command such as ciw
to change the inner word. This method has the advantage of being easily repeatable using the .
repeat command.
yiw
Yank inner word (copy word under cursor, say "first").ciw0
Change "second", replacing it with "first" ( is Ctrl-R)..
Change "third", replacing it with "first".