From 33a6d052ee380dbb88903a556c85f4dcbdbfa959 Mon Sep 17 00:00:00 2001 From: Jacob Swartwood Date: Tue, 8 Nov 2011 15:00:15 -0500 Subject: [PATCH] Adding variable to extend the default ack command with additional params. --- plugin/ack.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/ack.vim b/plugin/ack.vim index 1aecd51..3bd6c19 100644 --- a/plugin/ack.vim +++ b/plugin/ack.vim @@ -7,6 +7,10 @@ " sudo port install p5-app-ack let g:ackprg="ack\\ -H\\ --nocolor\\ --nogroup" +if exists("g:ackargs") + let g:ackprg=g:ackprg . "\\ " . g:ackargs +endif + function! Ack(args) let grepprg_bak=&grepprg