I love vim, but one common gotcha is:

  • yank a line
  • go to where you would like to paste it
  • delete what’s there
  • paste your yank, only to discover that it pastes what you just deleted

Obviously the workflow is delete first, yank second. But it would be reeeeeaaaaaalllly nice if I didn’t have to. Anyone have a trick for this? Does vim have a paste buffer that works well, or is there a .vimrc setting I can change?

13 Answers
13

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *