On 19/11/2004 11:18, Fabien Meghazi wrote:
>>In the case you mention, Method 1 has the advantage of being able to
>>access the correct vimfiles directory from any command shell; but if you
>>don't need that functionality, you can add the following (or something
>>similar) to your vimrc:
>> if has("unix")
>> let $VIMFILES = $HOME . "/.vim"
>> let $VIMFILES = $HOME . "/vimfiles"
> Thanks !
The above will work inside Vim. To have it work also in child processes
(external programs called from Vim) the path separator for Windows
should be a backslash, so replace the last line but one in the above
let $VIMFILES = $HOME . '\vimfiles'
(using single quotes to avoid the need to backslash-escape the
backslash), and check that your HOME environment variable is defined
with backslashes (":echo $HOME", no quotes, in Vim).