Tony wrote: > 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.
This may work in a lot of cases, but it is not a good general solution. Firstly, not all filesystems generate short filenames. FAT32 and NTFS are capable of generating short filenames. Secondly, on NTFS at least, you can disable short filenames. I always disable it on my machines (there is some perf gain from doing so). Thirdly, NTFS probably won't support short filenames forever. Short filenames are already considered deprecated. In a future release of Windows, possibly the one after Windows 7, expect short filename support to disappear completely. Craig --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
