bill lam wrote: > afaics default locations are > ~/.vimrc = $HOME/_vimrc > ~/.vim = $HOME/vimfiles > > and $HOME = %userprofile% on window thus, > ~/.vimrc = %userprofile%\_vimrc > ~/.vim = %userprofile%\vimfiles
The information about %USERPROFILE% is *not* correct. I have never bothered investigating all the details, but in general it is a total *coincidence* when people find that USERPROFILE works. A new Windows XP user will find something like this: C:\>set u USERPROFILE=C:\Documents and Settings\username C:\>set h HOMEDRIVE=C: HOMEPATH=\Documents and Settings\username Vim looks for $HOME (environment variable HOME). If it doesn't exist (by default it won't), Vim constructs $HOME by combining $HOMEDRIVE and $HOMEPATH (which normally exist, as above). Vim does *not* use USERPROFILE (exception: if $HOME == "%xxx%" Vim will expand the variable "xxx" (and "xxx" might be "USERPROFILE"). By "Windows" I mean win32 (NT, 2000, XP and probably later). People these days probably don't change any Windows settings, but some old timers know how to use lusrmgr.msc to set the "home folder". On the XP systems that I use, HOMEDRIVE and HOMEPATH are totally different from USERPROFILE. Vim behaves as described above. You can see one attempt I've made to explain where files are at: http://vim.wikia.com/wiki/VimTip1565 John --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
