I can search word in vim with /word. How can I search only for word, excluding searches for word1 and word2?
I can search word in vim with /word . How can I search only
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.
like this:
\<means beginning of a word, and\>means the end of a word,Adding @Roe’s comment:
VIM provides a shortcut for this. If you already have word on screen and you want to find other instances of it, you can put the cursor on the word and press
'*'to search forward in the file or'#'to search backwards.