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 ''
Tweet