In Vim, let\'s say I want to replace the contents of one String with the content of another.
Original input
var1 = \"January\"
var2
There are many ways of doing this however using visual mode is the easiest.
"_di"P
ci"0
.
inserts the contents of a registerpldt"
However visual mode still has my vote. I find that the concerns most people have is that using visual mode + paste is that the default register is swap with the selected text and it doesn't repeat well. Good news everybody! The 0
register always stores the last yank. The bad news is visual mode still doesn't repeat well. Take a look at this vimcast episode, Pasting from Visual mode, for more information. It mentions a few plugin that help with this.