How do I do a whole-word search like grep -w
in Vim, which returns only lines where the sought-for string is a whole word and not part of a larger word?
grep -w
: Select only those lines containing matches that form whole words.
Can this be done in Vim?