Doing a search with /
can be useful, however, it becomes harder to find things if the term you are searching for is a part of other words. I have a large text document with notes i've made about the BASH command language, and if i hit /cat
, in reference to the cat command, it just takes me to some word with "cat" as a part of it, like locate
.
During a search, is there a way to use the white space surrounding, preceding, or fallowing a term in order to find a word or sequence or characters? I've tried using double and single quotes with no luck. EOF ($) works, but that won't help find words in the middle of a document.
/\<cat\>
and see:help \<
and also:help *
$
is end-of-line (EOL), not end-of-file (EOF). As a range, however,$
is EOF.