How do i replace a visually selected range with the contents of the paste buffer in vim?
I want to replace a selection of text with is present in the default paste buffer. Say, I yanked a word with yaw and now I want to replace a word w开发者_运维知识库ith that, how do I do it?
I saw similar questions answered with suggestions to use a named register and delete the text-to-be-replaced into the black hole etc, but I am looking for a cleaner solution.
Visually select the range, then type p
.
精彩评论