Thursday, June 30, 2011

Passing Env Variables to Grep(as intended folders) search does not work under win32?

Hi

I am trying to use this format to search certain folders that are
designed within the variable

This line
":grep -i random $INCLUDES/*"

nor this line works
":!grep -i random $INCLUDES/*"

but this line inside Cygwin shell works(Mintty in this case)
"grep -i random $INCLUDES/*"

Windows User env variable
INCLUDES=c:\mingw\includes


I have tried defining it as a variable inside my startup scripts
let $INCLUDES="c:\mingw\includes"


that did not help either.


How can I use env variables with grep inside Vim?


thanks


--
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:

Post a Comment