Last Updated: February 25, 2016
· p-m-p

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.

Say Thanks
Filed Under