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: 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
finding-text-with-search.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