Vim lessons
Practice
Beginner
10 min
Precision Number Navigation
Task Instructions
Practice precise movement using count modifiers with movement commands
Practice jumping to specific targets using count modifiers. From Start, use 4j to reach Target A. Calculate the exact number of lines between targets and use precise count+movement commands.
Learning objectives
- Master count modifiers with movement
- Develop ability to calculate distances
- Improve navigation efficiency
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- \d+j Use count with j movement
- \d+k Use count with k movement
Helpful commands
- [count]j
- Move down [count] lines
- [count]k
- Move up [count] lines
- [count]h
- Move left [count] characters
- [count]l
- Move right [count] characters
Stuck? Peek at a hint 3 hints · try it on your own first
- Count the lines between your position and target
- Use 10j to move down exactly 10 lines
- Combine with horizontal movement: 20l moves 20 characters right
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL