? how it worksNeovim also remembers where you changed text. g; goes back to an older change and g, forward to a newer one. Right after an edit you are "past" the newest entry, so the first g; takes you to that edit, and each further g; steps one change further into the past. 3g; goes back three at once.
Edits close together on the same line count as one entry, so a burst of x presses doesn't flood the list.
Two related marks: `. jumps to the exact spot of the last change ('. to its line), and `^ jumps to where you last left Insert mode. :changes lists the whole change list.
Unlike the jump list, the change list doesn't care how you moved. It only records edits.
⌨ keysg;go to an older position in the change list g,go to a newer position in the change list `.exact position of the last change '.line of the last change `^where Insert mode was last stopped :changesshow the change list
N in neovimWith :set jumpoptions+=view, Neovim also restores the scroll position when g; and g, take you back to a change (the same goes for the jump list and marks).
2 drills Back to an earlier edit : Fix the typo under the cursor, then fix the end of the file (see the target). Finally, return to your first fix with g;. Three edits back : Fix the typo under the cursor, then the last line, then the first line (see the target). Finish back at your first fix with a counted g;. The drill editor loads in your browser.
‹ The jump list: CTRL-O and CTRL-I Words: iw, aw, iW and aW ›