vim trick – restoring something you delete

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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: