#Vimovember Day 11: Registers
-
#Vimovember Day 11: Registers
Whenever you delete a line or more, Vim saves the deleted text in the "1 register.
Which might not sound that exciting till you wonder what happens to what was prevously in that register. It is bumped up into the "2 register! And whatever was already in *there* is moved to the "3 register.
So your most recent 9 deletions are always available to be putted back into your buffer.
1/3
-
#Vimovember Day 11: Registers
Whenever you delete a line or more, Vim saves the deleted text in the "1 register.
Which might not sound that exciting till you wonder what happens to what was prevously in that register. It is bumped up into the "2 register! And whatever was already in *there* is moved to the "3 register.
So your most recent 9 deletions are always available to be putted back into your buffer.
1/3
Can't remember how many deletions ago the text you want to paste was? Take a rough guess using Price is Right rules (don't go over) or just paste from the "1 register by typing "1p . If you guessed wrong, then press u to remove the incorrect paste and then hit . to increment the register you're accessing and re-paste. Each time you hit .
the next register up will be used.2/3
-
undefined riffraff@mastodon.social shared this topic on