You can use the black hole register
"_d
In Vim is there a way to delete without putting text in the register?
Question
Right now if I copy something on my system, I can paste it in vim by doing:
"*p
However, if before pasting it, I delete something in vim, when typing "*p
, I get what I just deleted.
How can I avoid that?
Solution
You can use the black hole register
"_d
In Vim is there a way to delete without putting text in the register?