vim-settings/vim/rc/plugins/grepper.rc.vim
2016-11-15 09:25:41 -08:00

20 lines
527 B
VimL

" Grepper settings and shortcuts
let g:grepper = {
\ 'dispatch': 1,
\ 'quickfix': 1,
\ 'open': 1,
\ 'switch': 0,
\ 'jump': 0,
\ 'tools': ['ag', 'ack', 'git', 'pt', 'grep']
\ }
nmap gs <plug>(GrepperOperator)
xmap gs <plug>(GrepperOperator)
nmap <leader>* :Grepper -cword -noprompt<cr>
command! Todo Grepper -noprompt -query TODO
if executable('ag')
set grepprg=ag\ --nogroup\ --nocolor
endif
if executable('ack')
set grepprg=ack
endif