y9bnug
Last Updated: February 25, 2016
·
487
· p-m-p
D19ca5a5df662e8b1f3efbc7774de5e6

Don't skank my yank

vim

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.

Say Thanks
Respond
Filed Under