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
Press Enter to start
1const items = [1, 2, 3];2const filtered = items.filter(x => x > 1);3const 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.
Press Enter to start
1const primary = 1;2const secondary = primary;3render(primary);jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next