Search through set of files designated by multiple globs with Vimgrep
search, vim, vimgrep
Solution
To search for "text" in all *.txt & *.php files recursively from current directory.
:vimgrep "text" **/*.txt **/*.php
Problem
Does anyone know syntax of Vimgrep to search with multiple file globs? I am trying to use this command to search in the current directory. ``` map <F3> :execute "vimgrep /" . expand("<cword>") . "/j **/*.c* *.txt" <Bar> cw<CR> ``` With using this command, Vim searches only for `*.c*`. Any idea about how to search for multiple filetypes?