vim-settings/vim/rc/plugins/vim-grepper.rc.vim

23 lines
638 B
VimL
Raw Normal View History

Plug 'mhinz/vim-grepper'
2016-11-15 17:25:41 +00:00
" 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')
2017-01-23 20:18:13 +00:00
command -nargs=+ Ag :GrepperAg <args>
2016-11-15 17:25:41 +00:00
set grepprg=ag\ --nogroup\ --nocolor
endif
if executable('ack')
set grepprg=ack
2017-01-23 20:18:13 +00:00
command -nargs=+ Ack :GrepperAck <args>
2016-11-15 17:25:41 +00:00
endif