I'm at a loss.
I'm running Debian Lenny, vim 7.3, and I've tried both ack-grep 1.80 and 1.96. I added this line to my .vimrc:
let g:ackprg="ack-grep -H --nocolor --nogroup"
[When I include --column
I get an error that it is not a valid option, that's why I tried upgrading ack-grep.]
When I execute :Ack
, the quickfix window shows matches in this form:
|| folder/subfolder//file.rhtml:30:def do_it
I can use the :cn
, :cp
, etc. methods. But I CANNOT get vim to open the files. Both return and o do nothing.
What am I missing?!
I believe you need to escape the spaces. If you look at the
g:ackprg
in plugin/ack.vim, it looks like this:Another solution would be to symlink your ack-grep to be ack to make up for the sadness of ack getting renamed ack-grep by your distro's packager. :-(