开发者

How do i replace a visually selected range with the contents of the paste buffer in vim?

开发者 https://www.devze.com 2023-01-20 11:47 出处:网络
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 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

精彩评论

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