Friday, April 11, 2008

Last Jump Location

This technique was used in the "quick uncomment" tip I posted recently, but I figured I would mention it explicitly. A lot of times when I'm editing a file, I'll set a mark at my current location because I need to do something like jump to the bottom of the file and change something, and I anticipate needing to return to the current line. If you know you're going to quickly return to the current position, there's no need to set a mark. Just hit `` and it will return you to the position you were at before the last jump.

1 comment:

Unknown said...

:h jumplist

use CTRL-O and CTRL-I to move thru history of your jumps back and forth.