On 06/11/08 18:58, Ben Fritz wrote:
[...]
> In my testing, I had set g:mlint_path_to_mlint to something in my
> "Program Files" directory (hence the need for a double quote) and
> s:filename contained "Copy of startup.m" (also, a need for the double
> quote).
>
> There may be a much better way to accomplish this (which I'd love to
> hear), but nevertheless using system() to invoke an external program
> in Windows with a potentially space-infused path, and then passing
> this program an argument similarly infused with spaces (such as a file
> path), is potentially very useful.
[...]

To avoid passing a path with spaces in it, use the "short form" of the 
path, such as %:p:8 (this works only on Windows -- on Unix you can just 
backslash-escape the spaces).

This will convert the path so that "Program Files" becomes PROGRA~1, "My 
Documents" MYDOCU~1 and, I think, "Copy of startup.m" COPYOF~1.M -- the 
same directories and files will be accessed, but without the need for 
quoting the path.


Best regards,
Tony.
-- 
Information Center, n.:
        A room staffed by professional computer people whose job it is
to tell you why you cannot have the information you require.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui