mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

Can not find the ag command #262

Open CarlosMorfin opened 5 years ago

CarlosMorfin commented 5 years ago

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

marcov commented 5 years ago

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

marcov commented 5 years ago

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

marcov commented 5 years ago

This works:

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