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

Search Navigation Mastery

Task Instructions

Become an expert at finding and navigating search results

Practice searching through code. Use /error to search forward for 'error', then use n to go to next match and N for previous match. Try ?error for backward search.

Learning objectives

  • Master forward and backward search
  • Perfect search result navigation
  • Learn search patterns and options

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
  • n Navigate to next match

Helpful commands

/pattern
Search forward for pattern
?pattern
Search backward for pattern
n
Go to next search match
N
Go to previous search match
*
Search for word under cursor
#
Search backward for word under cursor
Stuck? Peek at a hint 3 hints · try it on your own first
  • / searches forward, ? searches backward
  • n = next match in same direction, N = next match in opposite direction
  • Add \c for case-insensitive search: /error\c
search-navigation-mastery.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