Your Progress
File Jump Navigation Expert
Estimated time: 10 minutes
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
This lesson requires you to use specific keystrokes to complete it. Your submission will be evaluated based on whether you used the required keystrokes mentioned below, rather than matching a specific output.
gg
Jump to beginning with gg
G
Jump to end with G
:\d+
Jump to specific line number
What This Means
- Your solution must include the required keystroke patterns
- The order of keystrokes may matter depending on the exercise
- You'll still need to achieve the expected output
- This helps you practice specific Vim techniques
Helpful commands:
Command | Description |
---|---|
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 |
Hints
- 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
Ready for Vim?
Before starting this lesson, be prepared.
Read the directions on the left, and when you're ready, let's go!