How do I find the next occurrence of my search pattern?
Answer
n
Explanation
After performing a search with / or ?, pressing n repeats the search in the same direction to find the next match.
How it works
nmoves to the next match in the search direction- After
/,nsearches forward; after?,nsearches backward - Wraps around the end/beginning of the file
Example
Searching /error finds the first error. Pressing n finds the second, n again finds the third, and so on.
Tips
Nsearches in the opposite direction{count}njumps ahead by N matches:set hlsearchhighlights all matches for easy visibility- The search pattern is remembered until you search for something new