开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜