Cleanup for Grepper

This commit is contained in:
ViViDboarder 2015-10-26 10:24:38 -07:00
parent dc08f01422
commit ee774a65e9
1 changed files with 5 additions and 4 deletions

View File

@ -65,12 +65,13 @@ let g:grepper = {
\ }
command! -nargs=* -complete=file Grep Grepper! -tool ag -query <args>
nmap <leader>* :Grep<Space>'\b<c-r><c-W>\b'<CR>
if executable('ack')
command! -nargs=* -complete=file Ack Grepper! -tool ack -query <args>
nmap <leader>* :Ack<Space>'\b<c-r><c-W>\b'<CR>
endif
if executable('ag')
command! -nargs=* -complete=file Ag Grepper! -tool ag -query <args>
endif
if executable('ack')
nmap <leader>* :Grep<Space>'\<<c-r><c-W>\>'<CR>
command! -nargs=* -complete=file Ack Grepper! -tool ack -query <args>
nmap <leader>* :Ag<Space>'\<<c-r><c-W>\>'<CR>
endif
command! Todo Grep TODO
" }} vim-grepper