Vertical motions move the cursor up and down the document that is being edited, and are critical for efficiently navigating a document.
We start with a few motions that move the cursor to absolute positions in the buffer:
Command | Action |
---|---|
gg | cursor to line N, default first line |
G | cursor to line N, default last line |
% | find the next (curly/square) bracket on this line and go to its match, or go to matching comment bracket, or go to matching preprocessor directive. |