In Vim, let\'s say I want to replace the contents of one String with the content of another.
Original input
var1 = \"January\"
var2
It's not particularly pretty, but here goes:
yi""_di"hpThat deletes what's in the quotes, but sends the deleted text to a black hole register. Then it moves the cursor back one, and pastes what you yanked from line one.
All in all, you can start on the first line and type yi"j"_di"hp. Why is it that people find vim intimidating? ;)
Alternatively, yank the first line as normal, then drop to line two and type ci" and select the previously yanked text from the menu.