2 years ago
#61780
yankolo
vim: how to prevent yanking to clipboard from replacing unnamed register?
Whenever I yank text to the clipboard register, the content of the unnamed register changes.
For example, yanking the word "This" to the unnamed register:
This is a test
^
yw
The unnamed register now contains "This".
Then yanking the word "test" to the * register:
This is a test
^
"*yw
The * register contains now "test".
I expect the unnamed register to still contain "This". However, if I do a simple put, "test" is insert:
This is a test
^
p
This is a test test
From my understanding, yanking to the clipboard register should not replace the unnamed register. Is there a way of preventing this from happening?
Vim version: 8.2
vim
0 Answers
Your Answer