Mission 23 / 52• Search

Search

Search in Vim is a movement command. Pressing `/` followed by your search term jumps you straight to the next occurrence.

Search commands

  • /patternsearch forward for pattern and press Enter
  • ?patternsearch backward for pattern and press Enter
1
const primaryColor = "#10b981";
2
const secondaryColor = "#6366f1";
3
const activeColor = primaryColor;

Type `/primary` and press Enter to instantly transport your cursor to `primaryColor`.

Now it's your turn!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const primaryColor = "#10b981";
2
const secondaryColor = "#6366f1";
3
const activeColor = primaryColor;
NORMAL
00:00
NextCtrl+jRepeat Search