Today I Learned

hashrocket 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 ''
See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.