mileszs / ack.vim

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

After Ubuntu 18.04 upgrade, ack-grep: command not found #246

Open alanq opened 6 years ago

alanq commented 6 years ago

|| /bin/bash: ack-grep: command not found after running :Ack anything

I have run sudo apt-get install ack-grep, and also ack, and ran sudo dpkg-divert --local --divert /usr/bin/ack --rename --add /usr/bin/ack-grep

oswinfox commented 6 years ago

I tried this and it work for me: sudo ln -s /usr/bin/ack /usr/bin/ack-grep But before do a whereis ack to be sure it is the same location.

strika commented 4 years ago

Another way to solve this is to map the command that plugin is using to ack:

let g:ackprg="ack -H --nocolor --nogroup --column"