Vim: How to efficiently search for text

searchvim

Whenever you want to search for text in vim you would type / and then the string you are looking for.

However, when the string is a long one, and you want to do this multiple times, is there a way to do it so that you don't have to type /andthisreallylongstring more than once?

Best Answer

Press "n" after you completed a search, then it will repeat the previous action(search).

Related Question