mileszs/ack.vim

Can not find the ag command

CarlosMorfin opened this issue · 3 comments

When I execute the command: Ack '=' the following line appears:
1 || /bin/bash/: ag: command not fount

In .vimrc I have set Ag behind the scene:
let g:ackprg = 'ag --nogroup --nocolor --column'

Can someone tell me how to fix this please

Options should go in let g:ack_default_options = "...."

BTW, I am able to get results just overriding g:ackprg, but jumping to it fails (it shows an etmpy buffer).

This works:

let g:ackprg = "ag"
let g:ack_default_options = " --case-sensitive --noheading --nopager --nocolor --nogroup --column"