vimtricks.wiki Concise Vim tricks, one at a time.

How do you paste over selected text without losing the yanked text?

Answer

"_dP in visual mode

Explanation

Use "_dP which deletes the selection into the black hole register and pastes before. The original yank remains in the unnamed register.

Next

How do I visually select a double-quoted string including the quotes themselves?