I am trying to do a case insentive search in vim with cscope. For example:
:cs find e regexp
Should find regexp, REGEXP, Regexp and so on... How can I do this? I've been trying the (?i) in front of the expression, but that didn't help.
I am trying to do a case insentive search in vim with cscope. For example:
:cs find e regexp
Should find regexp, REGEXP, Regexp and so on... How can I do this? I've been trying the (?i) in front of the expression, but that didn't help.
Copyright © 2021 Jogjafile Inc.
:cs find eexpects anegreppattern. Sinceegrepis not case-insensitive by default there's no reason to expect the patternregexpto matchregexp,REGEXP, etc.Also,
egrepdoesn't honor(?i).To make cscope's search (all search methods, not only
egrep) case-insensitive by default, you must add the-Cflag to your initialization command: