How to go back to lines edited before the last one in Vim?

I'm aware of the `. command that goes to last edited line. Is there a way to go further in the editing history? I often accidentally insert something while browsing the file, undo, but then `. will not bring me where I want anymore.


Try g ; and g ,. They jump backward and forward in the changelist.

See :help changelist for more details.


I use CTRL-O and CTRL-I to jump back and forth between recent points in files. It also goes through certain motion commands, but I find it usually takes me back to where I was editing.