0

Is there a way to do a one-off search using :Ggrep ignoring case? That is, what I'd do with git grep -i search_term in the shell?

The standard :vimgrep suggest embedding the \c modifier into the search pattern but :Ggrep /\csearch_term/ did not appear to work at all.

So, the question: is there a way to make :Ggrep ignore case for a particular search action?

Cyrus
  • 84,225
  • 14
  • 89
  • 153
kostix
  • 51,517
  • 14
  • 93
  • 176

1 Answers1

2

You can use the -i/--ignore-case flag for :Ggrep:

:Ggrep -i 'pattern'
Peter Rincker
  • 43,539
  • 9
  • 74
  • 101