mhinz / vim-grepper

:space_invader: Helps you win at grep.
MIT License
1.22k stars 58 forks source link

Can I have multiple configs for a same tool? #248

Open sihunqu123 opened 3 years ago

sihunqu123 commented 3 years ago

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