Don't skank my yank
When you yank some text in vim it goes in two places, the unnamed and 0
registers. If you delete some text (or any other op that writes to the unnamed register) before you put the text you wanted to copy with the yank then vim like totally "skanks your yank" and replaces the contents of the unnamed register (the one you put from using just p
or P
in normal mode). Never fear though... you can still put your yanked text from the 0 register with "0p
or "0P
.
Written by Phil Parsons
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Related Tags
#vim
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#