Mission 24 / 52• Search
Repeat Search
After initiating a search with `/`, you don't need to retype it to find other occurrences.
`n` finds the next match in the same direction, and `N` finds the previous match in reverse.
Repeat search
- njump to the NEXT match of the active search
- Njump to the PREVIOUS match in reverse direction
Press Enter to start
1const count = 0;2function increment(count) {3 return count + 1;4}Search for `/count`, then press `n` repeatedly to cycle forward through each instance, and `N` to walk backward.
Now it's your turn!
0 / 4 tasks complete0.0s / 24s par0 / 40 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Search backward for primary with ?primary, then repeat with n.
Show hint
Type ?primary, Enter, then n.
Press Enter to start
1const primary = 1;2const secondary = primary;3render(primary);jkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next