Course
Free Trial: 5 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Moving to Beginning and End of Lines
Vim Basics & Movement
Task Instructions
Master line-based movement with 0 and $ commands
Use '0' to move to the beginning of a line and '$' to move to the end of a line. Practice moving between different lines.
Learning objectives
- Master line-based movement with 0 and $
- Understand beginning vs end of line navigation
- Build efficient line navigation habits
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- 0 Move to beginning of line at least once
- $ Move to end of line at least once
Helpful commands
- 0
- Move to beginning of line
- $
- Move to end of line
- ^
- Move to first non-blank character
Stuck? Peek at a hint 2 hints · try it on your own first
- 0 = beginning of line, $ = end of line
- You can use j and k to move between lines, then 0 or $ to go to the beginning or end
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL