Today I Learned

A Hashrocket project

Jump Back ๐Ÿ‡

A Vim motion Iโ€™ve really been loving lately is '' or ``, which returns you to the previous jump position. It references the previous jump, so using it twice in a row will toggle you back and forth between two locations.

I use this a lot after jumping to the next occurance of a word with *, and then changing that word in some way so I canโ€™t return with *. If youโ€™re using normal mode most of the time, this command can help you walk back through your thought process.

For more info:

:help ''
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the monthly Vim Chicago Meetup hosted at our Chicago office.