Skip to content

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

Open
@sihunqu123

Description

@sihunqu123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions