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!

0 / 7 tasks complete0.0s / 33s par0 / 43 par

Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.

Task 1: Find primary on the second line using backward search ?primary.

Show hint

Type ?primary and press Enter.

1
const primary = 1;
2
const secondary = primary;
3
render(primary);
jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next