I suggest adding text like this, to :help $HOME: "On Windows, if $HOME is not defined as an environment variable, then at runtime Vim will set it to the expansion of $HOMEDRIVE$HOMEPATH."
Further, I would add links like: "See |$HOME| for when this is not set as an environment variable on your system." ...to a few places, specifically: :help vimrc :help gvimrc (note on these two, it claims when $HOME is unset, $VIM is used, which I don't think is true since $VIM sets $HOME) :help 'runtimepath' :help viminfo-file-name :help vimrc-info (maybe this needs a fuller explanation than just a link) :help add-global-plugin I note that if this todo item is implemented, the text added to :help $HOME will need an update, so probably it should stay mostly in this one central location (unless there is a better spot): 8 Should $USERPROFILE be preferred above $HOMEDRIVE/$HOMEPATH? No, but it's a good fallback, thus use: $HOME $HOMEDRIVE$HOMEPATH SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_APPDATA, FALSE); $USERPROFILE SHGetSpecialFolderPath(NULL, lpzsPath, CSIDL_COMMON_APPDATA, FALSE); $ALLUSERSPROFILE $SYSTEMDRIVE\ C:\ I'm not sure how much of this is currently in the code, perhaps a simplistic "$HOMEDRIVE$HOMEPATH" is not completely accurate even now. -- You received this message from the "vim_dev" 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