-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
I'm getting too many matches on git grep on binary files, that I would like to exclude by default when using :Ggrep. I've found that there is a flag for this: git grep -I pattern (here).
The problem is that there is no config available to make that the default so it need to be added each time. It is well supported on vim-fugitive when typed: :Ggrep -I pattern works as expected, but I found no way to make it the default behavior.
I'm not sure if it should be a default, or may be there should be an option to do this.
As far as I understand, the trick would be to read a config here and add an argument if needed.
On the other hand, may be there is a simple way to make :Ggrep pattern execute :Ggrep -I pattern instead with a simple vim config that I'm not aware of?