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?
:cn
and:cp
to go to the next and previous matches respectively. – Diocesan