rking / ag.vim

Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
1.74k stars 131 forks source link

Can't jump when searching within a file #91

Open 3cooper opened 9 years ago

3cooper commented 9 years ago

If I run:

:Ag searchString myFile.vim

I get results, but am unable to navigate to the lines via the quick fix window. I can scroll through them but hitting the enter key does not take me to the line.

screen shot 2015-02-10 at 9 58 53 am

losingkeys commented 9 years ago

Thanks for the bug report!

Could you post the following?

3cooper commented 9 years ago
:let g:ag_prg
g:ag_prg               ag --column

:let g:agprg
E121: Undefined variable: g:agprg

:let g:ag_format
g:ag_format            %f:%l:%c:%m

:let g:agformat
 E121: Undefined variable: g:agformat

ag --version
ag version 0.18.1
losingkeys commented 9 years ago

That all looks ok, but I'm thinking the out of ag changed. 0.18.1 was released a couple years ago, so I bet updating does the trick. I'll try to find some time to install that version and try it out myself though.

3cooper commented 9 years ago

Didn't realize I was that far behind. Will update and give it a try.

Sent from my iPhone

On Feb 12, 2015, at 7:06 PM, Josh Hoff notifications@github.com wrote:

That all looks ok, but I'm thinking the out of ag changed. 0.18.1 was released a couple years ago, so I bet updating does the trick. I'll try to find some time to install that version and try it out myself though.

— Reply to this email directly or view it on GitHub.

xitijie commented 8 years ago

i met the same problem too, when's the bugfix come?

helinbo2015 commented 7 years ago

@xitijie @3cooper @losingkeys so am i, this is due to ag_prg and ag_format are not set correctly.
this is to say: ag_prg and ag_format shoud match each other.
for example:

by the way, i guess the meaning of ag_format: %f: file, %m: match content, %l: line-numbers, %c: column, and %f:%m is default output.