mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-15 13:26:26 +00:00
20 lines
527 B
VimL
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
|