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.

Practice Advanced 10 min

File Jump Navigation Expert

Task Instructions

Master file jumping with gg, G, and line number navigation

Practice jumping to specific locations. Use :10 to jump to line 10, G to jump to the end of file, gg to jump to beginning, and :17 for line 17. These commands give you instant access to any part of the file.

Learning objectives

  • Master file position jumping
  • Memorize gg and G commands
  • Perfect line number navigation

Required keystrokes

Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.

  • gg Jump to beginning with gg
  • G Jump to end with G
  • :\d+ Jump to specific line number

Helpful commands

gg
Go to first line of file
G
Go to last line of file
:n
Go to line number n
Ctrl+g
Show current file position
'
Jump to mark
Stuck? Peek at a hint 3 hints · try it on your own first
  • gg = go to first line, G = go to last line
  • :n = go to line n (e.g., :25 goes to line 25)
  • Ctrl+g shows your current position in the file
vim@sandbox: ~/workspace
Save your file with :w ⏎ to unlock Submit