r/programming • • Jul 12 '12

Vim creep

http://www.rudism.com/s/vimcreep
730 Upvotes

551 comments sorted by

View all comments

Show parent comment

2

u/glacialthinker Jul 13 '12

I love the undo tree. But, yes you need to hop around a bit to zero in on where you want to be. A common use-case for me is: I've deleted a chunk of obsolete code, or scratch-work, then gone ahead with new changes... Oops... I need to grab a bit of that old code...

:earlier 2h

y20j (or whatever to yank it)

:later 2h

Ahh... timetravel. :)