Skip to content
This repository has been archived by the owner on Nov 11, 2019. It is now read-only.

Commit

Permalink
Eliminate need for escaping g:ackprg
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Feb 17, 2010
1 parent 46f021c commit 3a94296
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions plugin/ack.vim
Expand Up @@ -6,11 +6,11 @@
" With MacPorts:
" sudo port install p5-app-ack

let g:ackprg="ack\\ -H\\ --nocolor\\ --nogroup"
let g:ackprg="ack -H --nocolor --nogroup"

function! s:Ack(args)
let grepprg_bak=&grepprg
exec "set grepprg=" . g:ackprg
let &grepprg = g:ackprg

redraw
echo "Searching ..."
Expand All @@ -30,7 +30,7 @@ endfunction

function! s:AckAdd(args)
let grepprg_bak=&grepprg
exec "set grepprg=" . g:ackprg
let &grepprg = g:ackprg
execute "silent! grepadd " . a:args
botright copen
let &grepprg=grepprg_bak
Expand All @@ -39,7 +39,7 @@ endfunction

function! s:LAck(args)
let grepprg_bak=&grepprg
exec "set grepprg=" . g:ackprg
let &grepprg = g:ackprg
execute "silent! lgrep " . a:args
botright lopen
let &grepprg=grepprg_bak
Expand All @@ -48,7 +48,7 @@ endfunction

function! s:LAckAdd(args)
let grepprg_bak=&grepprg
exec "set grepprg=" . g:ackprg
let &grepprg = g:ackprg
execute "silent! lgrepadd " . a:args
botright lopen
let &grepprg=grepprg_bak
Expand Down

0 comments on commit 3a94296

Please sign in to comment.