On 2011-05-13, cyboman wrote:
> i'm trying to set a path for my gmake.exe in WinXP. unfortunately it
> just happens so that company i'm working for has gmake.exe on a per
> project basis. i.e.
>
> C:\Documents and Settings\username\projects\projectname\trunk\tools
> \gmake.exe
[...]
> would anybody know how to make vim execute gmake.exe which is located
> in directories with spaces in their names (other than simply moving
> gmake.exe to a directory with a name without spaces in it)
let &makeprg = '"C:\Documents and
Settings\username\projects\projectname\trunk\tools\gmake.exe"'
should do it, as should
set makeprg=\"C:\\Documents\ and\
Settings\\username\\projects\\projectname\\trunk\\tools\\gmake.exe\"
The solution is a combination of giving Windows the full path
enclosed in double-quotes and quoting the result properly for Vim.
I find it easier to first get a string to work with :let, then
translate the working string to one that works with :set.
Regards,
Gary
--
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