Mission 26 / 52• Search

Search Review

Search is one of the highest-yield workflows in Vim. Combining `/`, `?`, `*`, `n`, and operators lets you edit files at lightspeed.

Search review toolkit

  • /search forward
  • ?search backward
  • *quick find word forward
  • n / Nnext / previous match
1
const items = [1, 2, 3];
2
const filtered = items.filter(x => x > 1);
3
const mapped = filtered.map(x => x * 2);

Practice using `*` on `filtered`, then `n` to trace its usage across statements.

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 items = [1, 2, 3];
2
const filtered = items.filter(x => x > 1);
3
const mapped = filtered.map(x => x * 2);
NORMAL
00:00