0

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?

deepak
  • 3,074
  • 2
  • 20
  • 29

2 Answers2

3

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"
romainl
  • 186,200
  • 21
  • 280
  • 313
2

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

ln -s /usr/bin/ack-grep /usr/bin/ack
Jesse
  • 8,605
  • 7
  • 47
  • 57
deepak
  • 3,074
  • 2
  • 20
  • 29