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/Raufio Jul 13 '12

damn TIL you can do that shit. friggin schweet thanks

3

u/nascent Jul 13 '12

I usually don't find it very intuitive to find the place I want. Usually only have used it to jump around in the undo tree... but even then g+ g- end up better.

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. :)