Reach a line or buffer boundary
The technique
0 would stop on the first space. ^ skips the indent and lands on the first real character.
Keys in this lesson
- 0
- Start of the line.
- ^
- First character that is not a space.
- $
- End of the line.
- gg
- First line.
- G
- Last line.
- 3G
- Line 3.
Before this lesson: Choose a word destination.
More about this lesson
Jump to the start or end of a line, or to the first or last line of the file.
0 goes to the very first column, ^ to the first character that isn't a space, and $ to the last character. gg goes to the first line and G to the last. Put a number before G to pick a line, so 3G goes to line 3. Press 0 after a line jump when you need the first column.
Example
On “ review notes”, 0 lands on the first space, ^ on r and $ on s. In a longer file, gg takes you to the first line and 12G to line 12, each to its first character.
Use Start over to try again.