Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@goddoe
Created May 20, 2020 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goddoe/c6921a5b76926ac44e607b3c8f7e999a to your computer and use it in GitHub Desktop.
Save goddoe/c6921a5b76926ac44e607b3c8f7e999a to your computer and use it in GitHub Desktop.
Retrace your movements in file in backwards in vim
(reference: https://www.cyberciti.biz/faq/unix-linux-vim-go-back-to-last-cursor-position/)
[a] '. : Jump to last modification line.
[b] `. : Jump to exact spot in last modification line
[c] CTRL-O : Retrace your movements in file in backwards.
[d] CTRL-I : Retrace your movements in file in forwards.
From the vim help files:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment