Skip to content
Vim Learn
Learn/

Repeat Search

23 / 51

Search

Repeat Search

Continue or reverse the most recent search.

n repeats in the original direction and N goes the other way. Both wrap through the buffer when necessary.

Use n, and N in the editor beside this lesson. The challenge proves it once; Practice is a timed run against the clock.

Keys in this lesson

n
Repeat the last search in the same direction
N
Repeat the last search in the opposite direction
All 91 keys →

Practice against the clock.

The challenge proves completion once. Practice is a timed run of 15 goals — beat par, then beat your own best time. Every completed goal saves locally.

/itemnN

Search for “item”, advance, then reverse with N.