like this:
/\<word\>
\< 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.
If you are working in Ubuntu,follow the steps:
/ and type word to search* key# key For basic searching:
Some variables you might want to set:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With