Add Ag command back

This commit is contained in:
ViViDboarder 2017-01-23 12:18:13 -08:00
parent c24f602769
commit 9867116073

View File

@ -13,8 +13,10 @@ xmap gs <plug>(GrepperOperator)
nmap <leader>* :Grepper -cword -noprompt<cr> nmap <leader>* :Grepper -cword -noprompt<cr>
command! Todo Grepper -noprompt -query TODO command! Todo Grepper -noprompt -query TODO
if executable('ag') if executable('ag')
command -nargs=+ Ag :GrepperAg <args>
set grepprg=ag\ --nogroup\ --nocolor set grepprg=ag\ --nogroup\ --nocolor
endif endif
if executable('ack') if executable('ack')
set grepprg=ack set grepprg=ack
command -nargs=+ Ack :GrepperAck <args>
endif endif