How do I move the cursor to the middle of the visible screen?
M
The M command moves the cursor to the line in the middle of the current window.
M
The M command moves the cursor to the line in the middle of the current window.
L
The L command moves the cursor to the last line visible in the current window.
}
The } motion moves the cursor forward to the next blank line, effectively jumping to the next paragraph.
)
The ) motion moves the cursor to the beginning of the next sentence.
:<line-number>
When you know the exact line number you want to navigate to, the colon command is the quickest way to get there.
{
The { motion moves the cursor backward to the previous blank line, jumping to the beginning of the current or previous paragraph.
ge
The ge motion moves the cursor backward to the end of the previous word.
<C-o> and <C-i>
Vim maintains a jump list of positions you have visited.
F{char}
The F command moves the cursor backward to the previous occurrence of a specified character on the current line.
]s and [s
How it works When spell checking is enabled in Vim with :set spell, misspelled words are highlighted.
gD
How it works Vim provides two built-in commands for jumping to where an identifier is defined, without needing tags or an LSP: gd (lowercase) searches backward
( and )
How it works Vim defines a sentence as text ending with .
<C-f> to scroll forward, <C-b> to scroll backward
How it works Vim provides two commands for scrolling by an entire screen (page) at a time: Ctrl-F (Forward) scrolls the view one full page down through the file
W, B, and E
How it works Vim distinguishes between two types of word objects: A word (lowercase w, b, e) is a sequence of letters, digits, and underscores, or a sequence of
v%
How it works The % motion jumps to the matching bracket, parenthesis, or brace.
M to move to the middle, L to move to the bottom
How it works Vim offers three commands to jump the cursor to specific vertical positions on the visible screen without scrolling: H moves to the top of the scre
/pattern/+N or /pattern/-N
Vim's search command accepts an offset that places your cursor on a line relative to the match.
<C-o> / <C-i>
Vim maintains a jumplist — a history of every "jump" you make (searches, marks, gg, G, %, etc.
{N}|
The command (pipe character) moves the cursor to a specific column number on the current line.
gj / gk
When a long line wraps across multiple screen rows, the regular j and k motions skip the entire logical line.