Bram Moolenaar wrote:
Where is that %HOMEDRIVE%HOMEPATH% coming from?

AFAIK %HOMEPATH% is optional, when not defined "\" is to be used.
That's at least how $HOME is expanded.  Oh wait, that's in the
installer.  In Vim itself %HOMEPATH% must be defined for $HOME to work.
But %HOMEPATH% should be defined in the environment.
----
AFAIK, they are standard variables in Windows 7. By default, they are combined for compatibility to make 'HOME'.

I think the reason is that this way one can split off the drive as separate from the PATH and the drive could be on a NETWORK or a NEW hard disk -- making it easier to move users around.

        HOMEPATH is defined.  HOMEDRIVE in my case is C:
and HOMEPATH="\Users\lindaw", so "%HOMEDRIVE%%HOMEPATH%"=
"C:\Users\lindaw".  Which, when I print out my environment, is also
what "HOME" is equal to.
        As a workaround, I just set HOME, manually, in my
user-environment, to override the default value -- but something
to be aware of -- that it *appears* that %HOME% can expand into 2 concatenated env-vars. I don't know how far they can nest, but presumably any loop would cause immediate terminate (though knowing
windows, it might cause an infinite loop swallowing up all of
memory...:-)). Ooops. Shouldn't have mentioned that...

-linda




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

Reply via email to