Add Ag command back

This commit is contained in:
ViViDboarder 2017-01-23 12:18:13 -08:00
parent c24f602769
commit 9867116073
1 changed files with 2 additions and 0 deletions

View File

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