:jumps

:jumps will show you all the places your cursor has been.

CTRL-O will move back in the jump list.
CTRL-I will move forward in the jump list.
As these commands work across files and directories, they are extremely powerful navigation commands.

Further Reading

:h :jumps :h CTRL-O :h CTRL-I

More Gifs