ag.vim
ag.vim copied to clipboard
Can't open files when searching with -g
:Ag -g "some_filename"
shows matching files in quickfix window, but hitting "e" / "t" / whatever just opens an empty buffer.
This is because the errorformat string the plugin uses tells vim to look for line and column numbers. Because they're not there, vim has trouble jumping to the files. You can use :AgFile to add the -g flag. I'll leave this open so we can change the errorformat based on whether or not -g is given.
On Sep 18, 2014, at 7:44, jhofmeyr [email protected] wrote:
:Ag -g "some_filename" shows matching files in quickfix window, but hitting "e" / "t" / whatever just opens an empty buffer.
— Reply to this email directly or view it on GitHub.
:AgFile
is exactly what I was looking for ... probably should rtfm instead of relying on google