2
Using Windows 10. I have gvim installed. I also have git, and I have git's bin in my PATH (C:\program files (x86)\Git\bin), which puts git's gnu grep in my path so I can use it in the command shell.
> grep -V
grep (GNU grep) 2.4.2
However, when I use grep from vim -
:grep -ir 'something' .
It is using FINDSTR in windows, which doesn't work very well.
How do I make gvim use the GNU grep? I tried pre-pending the git bin dir to my vim path but that didn't help.
Have you tried the grep.vim : Grep search tools integration with Vim plugin?
– DavidPostill – 2016-01-13T23:25:33.040thanks for pointing that out. that may be the answer, but I'd like to just try getting the grep command use gnu grep rather than an uppercase Grep command. – user39160 – 2016-01-13T23:37:26.420
You could always install Cygwin ;) – DavidPostill – 2016-01-13T23:42:56.773
1Did you read
:help grepprg
? – romainl – 2016-01-14T12:49:35.110@romainl - wow I'll have to set aside half a day to do that ;) one of the longest docs I've seen. Looks like it's probably the answer though – user39160 – 2016-01-14T15:27:14.107