Course
Free Trial: 3 lessons remaining
Unlock Full Access
Practice
Beginner
10 min
Finding Text with Search
Navigation & Jumping
Task Instructions
Learn search commands to quickly find text in files
Use '/' followed by 'treasure' to search for the word. Then use 'n' to go to the next occurrence and 'N' to go to the previous occurrence.
Learning objectives
- Learn to use / for forward search
- Understand n and N for search navigation
- Practice efficient text finding
Required keystrokes
Your submission is checked for these keystrokes, not just the final text — so reach for the technique, not a workaround.
- / Use forward search at least once
- n Navigate to next search result
Helpful commands
- /pattern
- Search forward for pattern
- ?pattern
- Search backward for pattern
- n
- Go to next search result
- N
- Go to previous search result
Stuck? Peek at a hint 2 hints · try it on your own first
- Type /treasure and press Enter to search
- Use 'n' for next match, 'N' for previous match
" Read the task on the left.
" A live Vim editor opens right here.
" Finish the edits, then submit.
~
~
NORMAL