vimvimgrep

is there any way to vimgrep, limiting to >1 but not all types of files?


i'm pretty used to doing either:

:vimgrep /whatever/ **/*

or

:vimgrep /whatever/ **/*.txt

but is there a way with vim globbing to do, say, 2 file types? i guess i want something that would work kind of like this:

:vimgrep /whatever/ \*\*/.(txt|vb)

Solution

  • :vimgrep /whatever/ *.{txt,vb}
    

    Is what you're looking for, I believe.