mhinz/vim-grepper

Can I have multiple configs for a same tool?

sihunqu123 opened this issue · 0 comments

Config:

let g:grepper = {
    \ 'grep': {
    \   'grepprg':    'grep -Rn $* .'
    \ },
    \ 'grepI': {
    \   'grepprg':    'grep -Rni $* .'
    \ },
    \ 'grepFile': {
    \   'grepprg':    'grep -Rni $* $.'
    \ },
    \ 'tools': ['grep', 'grepI', 'grepFile']
    \}

Then in vim:
to grep case-sensetive

:Grepper -tool grep -quickfix -highlight

to grep case-insensetive

:Grepper -tool grepI -quickfix -highlight