Say I have files File1.m, File2.m, and File3.m in the current directory. I want vimgrep to search all but File3.m. After reading the help on using backticks to specify files for vimgrep, I tried:
:vimgrep SearchExpression `echo !(File3).m`
This yields the error
Cannot open file "File1.m File2.m"
!(File3).m is being properly expanded by bash, but the space-separated file names that come back are being interpretted in the vimgrep command as a single file name.
Is there a way to have them interpretted as separate files?
I am using [g]vim on cygwin.