Search vim * star / asterisk (: help star) is a great feature that allows you to find the next occurrence of a word over which the cursor is over. Unfortunately, it treats dollar prefixes as part of the string, so if I press * and above "SearchTerm" in the class name, it finds "SearchTerm" in the comment and "$ this-> SearchTerm", but not "$ SearchTerm":
class SearchTerm { var $SearchTerm; function DoStuff() { return $this->SearchTerm; } }
Is there a way to tell star search to ignore $ -prefix?
Just to deploy Haes answer:
I needed to remove $ from iskeyword
:set iskeyword
source share