vim trick – restoring something you delete

January 3rd, 2008 by webstersprodigy

If you delete, like say, 3 lines fast.

dd
dd
dd

and want to restore the 1st thing deleted only (not the other 2) you can with the following command:

“3dd

pretty slick.  I’m not sure I’ll ever be enough of a power user to remember it.

Leave a Reply


No computers were harmed in the 0.184 seconds it took to produce this page.