Course
Free Trial: 5 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Jumping to Specific Line Numbers
Navigation & Jumping
Task Instructions
Learn to navigate to specific line numbers using the :n command
Practice jumping to specific line numbers using :n where n is the line number. Try :25 to go to line 25, :42 for line 42, etc. The file has 50 lines with markers every 5-10 lines to help you verify your jumps.
Learning objectives
- Master the :n command for line number navigation
- Understand how to jump to specific lines instantly
- Practice navigating large files efficiently
- Combine line numbers with other navigation commands
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- :\d+ Use :n to jump to a specific line number
Helpful commands
- :n
- Go to line number n (e.g., :25)
- :$
- Go to the last line of the file
- :1
- Go to the first line of the file
- :set number
- Show line numbers in the editor
Stuck? Peek at a hint 4 hints · try it on your own first
- Type :25 and press Enter to go to line 25
- The colon (:) enters command mode
- You can use :$ to go to the last line
- :1 takes you to the first line
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL