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
roxrook
  • 13,511
  • 40
  • 107
  • 156

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
  • 186,200
  • 21
  • 280
  • 313