Jumping between matches
Once you’ve made a search, you can jump between matches with the n and N keys.
njumps to the next match in the direction that you initiated the search — so if you initiated the search with/,njumps forward in the document, but if you initiated with?,njumps backwards.Njumps to the next match in the opposite direction to what you initiated the search with.
Searches in Vim wrap around by default, so if you’re on the last match in the document and you hit n, you’ll be taken to the first match.
Try this in the editor. This time, there are a few NEEDLE lines among the HAYSTACK lines. Start searching for NEEDLE, and then use n and N to jump between the different matches.