How do I jump back to my previous cursor position?
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
<C-o>
The (Ctrl+o) command jumps the cursor backward through the jump list, returning you to previous cursor positions.
b
The b command moves the cursor backward to the beginning of the previous word.
H
The H command moves the cursor to the first line of the currently visible screen (the "High" position).
{ and }
The { and } commands move the cursor by paragraph — jumping to the previous or next blank line.
f{char}
The f{char} command moves the cursor forward to the next occurrence of {char} on the current line.
t{char}
The t{char} command moves the cursor forward to the character just before the next occurrence of {char} on the current line.
gg
The gg command moves the cursor to the first line of the file.
G
The G command moves the cursor to the last line of the file.
42G
The 42G command jumps the cursor directly to line 42 in the current file.
zz
The zz command scrolls the window so that the current cursor line appears in the middle of the screen.
%
The % command jumps to the matching bracket, parenthesis, or brace.