0

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?

Hommer Smith
  • 26,772
  • 56
  • 167
  • 296
  • 2
    Do you have something like `set clipboard=unnamed` in your vimrc? If you do remove it. – FDinoff May 02 '14 at 17:47
  • I agree with @FDinoff, although it might be set somewhere other than your vimrc file. Try `:verbose set cb?` to find the current setting and where it was set. – benjifisher May 02 '14 at 19:49

1 Answers1

2

You can use the black hole register

"_d 

In Vim is there a way to delete without putting text in the register?

Community
  • 1
  • 1
g3cko
  • 920
  • 1
  • 6
  • 21