Wednesday, September 1, 2010

Forcing Vim to use findstr as 'grepprg' on Windows

I have trouble forcing Vim to use findstr /N as grepprg on Windows. I don't know what tricks does Vim do under the hood, but my grepprg is set to 'grep -nH $*' by default. However, while I do have a copy of grep in my path, it doesn't support the '-H' option.
 
I then put 'set grepprg=findstr\ /N' in my path. But I still got 'grep -nH $*' then vim is brough up.
 
Why???

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: