I'm using the Fugitive plugin. It has the :Ggrep
command which is very useful for searching the repo.
One annoying thing is that I have huge .map
files and I want to omit them from my search. I cannot modify the .gitignore
and other files, I can only modify what's related to vim.
I'm using this:
:Ggrep foobar -- './*' ':(exclude)*.map'
How can I tell vim to always append -- './*' ':(exclude)*.map'
and just write:
:Ggrep foobar
every time I'm searching for foobar?