Permalink
Browse files

add the posibility to change the ack utility

  • Loading branch information...
1 parent 6ff6f34 commit 95dcc4a399aeed7ba9cb97c01faf75950a14772d spk committed Mar 12, 2010
Showing with 13 additions and 4 deletions.
  1. +5 −1 README.md
  2. +8 −3 plugin/ack.vim
View
@@ -14,10 +14,14 @@ The *Official Version* of this plugin is available at [vim.org](http://www.vim.o
You have to install [ack](http://search.cpan.org/~petdance/ack/ack), of course.
-Install on Ubuntu with:
+Install on Debian / Ubuntu with:
sudo apt-get install ack-grep
+For Debian / Ubuntu you can add this line into your .vimrc:
+
+ let g:ackprg="ack-grep -H --nocolor --nogroup"
+
Install on Gentoo with:
sudo emerge ack
View
@@ -1,12 +1,17 @@
" NOTE: You must, of course, install the ack script
" in your path.
-" On Ubuntu:
+" On Debian / Ubuntu:
" sudo apt-get install ack-grep
-" ln -s /usr/bin/ack-grep /usr/bin/ack
+" On your vimrc:
+" let g:ackprg="ack-grep -H --nocolor --nogroup"
+"
" With MacPorts:
" sudo port install p5-app-ack
-let g:ackprg="ack -H --nocolor --nogroup"
+" Location of the ack utility
+if !exists("g:ackprg")
+ let g:ackprg="ack -H --nocolor --nogroup"
+endif
function! s:Ack(cmd, args)
redraw

0 comments on commit 95dcc4a

Please sign in to comment.