I am using vim with Ag.vim
(silver-searcher) and i came across a problem.
the Ag plugin defines Ex mode commands such as :Ag
and :AgFromSearch
.
but while :Ag
lets me pass options to the shell's ag
command such as -G
which lets me whitelist files, :AgFromSearch
doesn't let me..
so my question is - is there any pretty solution to this? or should i just imitate the way the plugin implements :AgFromSearch
with :Ag
and pass through it the options?