Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ack plugin inside the vim is not working

I'm getting following error inside vim while using Ack plugin:

[ No Name]
|| ack-grep: Command not found.

I have installed ack vim-plugin at the path ~/.vim/bundle/ack.vim. I have checked with :scriptnames, it shows me proper path.

Added following entries to my .vimrc file:

let g:ackprg="ack-grep -H --nocolor --nogroup --column"
nmap <leader>a <Esc>:Ack! 

I'm still getting the error. Am I missing anything ?

like image 953
Mandar Pande Avatar asked Oct 21 '25 03:10

Mandar Pande


1 Answers

One of the requirements for running the Plugin is to have Ack >= 2.0 installed on your machine.

For Ubuntu/Debian this should work:

sudo apt-get install ack-grep

Here are installation steps for other OS http://beyondgrep.com/install/

like image 148
csebryam Avatar answered Oct 24 '25 21:10

csebryam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!