To search forward in Vim for cake, I’d type /cake, but the cursor jumps to the first match when I press return. Is there a Vim command analogous to “find next”?
To search forward in Vim for cake , I’d type /cake , but the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is n for next and N for previous.
And if you use reverse search with
?(for example,?cake) instead of/, it is the other way round.If it is installed on your system, you should try to run
vimtutorcommand from your terminal, which will start a tutorial of the basic Vim commands.Rob Wells advice about * and # is also very pertinent.