mileszs / ack.vim

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

seems that after upgrade its broken I cant use anymore *:Ack* #123

Closed ikonitas closed 10 years ago

ikonitas commented 10 years ago

In previous version command like :Ack "foo" was working fine but now I am getting message in QuickFix window saying: 1 || ack v1.39 Copyright 1993,94 Ogasawara Hiroyuki (COR.)
2 || usage: ack [-{e|s|j|c[c]}] [-{a|A|o}] [-zCntud] [-{E|S}] [..]

am I missing something as in previous version was working fine.

kassio commented 10 years ago

@zatan could you give me more information? which version of ack.vim are you using? did you change the g:ackprg?

Thanks!

brianstorti commented 10 years ago

@zatan I guess you are using linux, right? In your system, this ack is actually a Kanji converter. The ack we all know and love is called ack-grep. Here's what you can do to fix this problem: 1) You can create an alias in you .bashrc or similar: alias ack="ack-grep" or 2) You an change g:ackprg in your .vimrc: let g:ackprg="ack-grep"

Let us know it that helps.

ikonitas commented 10 years ago

@brianstorti and @kassio I tried option 2) You an change g:ackprg in your .vimrc: let g:ackprg="ack-grep" and its fixed thank you guys for your help :+1: