2

Possible Duplicate:
In vim is there a way to delete without putting text in the register?

Most of the time, I use yy to yank and line and then paste with p somewhere. However, if I use dd to delete any line, or dw to delete any word, I will lose anything that I had yanked. Is there a workaround to this problem?

Thanks,

Community
  • 1
  • 1
Chan
  • 13,038
  • 40
  • 104
  • 154

1 Answers1

4

The same question has been answered a few times, I think.

You can map the correct command to eg <leader>d with:

nnoremap <leader>d "_d
Community
  • 1
  • 1
romainl
  • 172,579
  • 20
  • 259
  • 291