5

If I try to copy a word via this yw – yank the current word and paste it to somewhere, it works but If I try to paste it somewhere else one more time old world gets lost with previous replaced word.

I want to paste multiple times with the original yanked word.

5

You should use the register 0. It contains the last yanked text.

By default, c, d, y use the unnamed register "" to store all modified text.

But the numbered registers "0 contains the previously yanked text and only that. You can use :

"0p

With confidence it will past the last yanked text.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.