Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

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
jumping-to-specific-line-numbers.txt

1" Read the task on the left.

2" A live Vim editor opens right here.

3" Finish the edits, then submit.

~

~

NORMAL 1,1   All

Ready to practice?

Take your time with the task — start whenever you're set.

Start Lesson