deepak
deepak

Reputation: 3172

Ack not returning results in Vim in ubuntu

I'm using vim with ack in ubuntu. When searching with :Ack is not returning any result. I had installed both ack-grep and ack.vim.

am i missing anything here?

Upvotes: 0

Views: 616

Answers (2)

romainl
romainl

Reputation: 196476

Ack.vim is able to recognize both ack-grep and ack. If none of those are in your $PATH, you can define the path to ack in your ~/.vimrc, like this:

let g:ackprg="<custom-ack-path-goes-here> -H --nocolor --nogroup --column"

Upvotes: 3

deepak
deepak

Reputation: 3172

we have to create a symlink for ack to work with vim

ln -s /usr/bin/ack-grep /usr/bin/ack

Upvotes: 2

Related Questions