Re: $HOME inconsistent in Windows?
If you haven't already gotten an answer you may want to try logging out and back in. I recall having some issues with the Environment variables in windows. On 5/9/07, Chris Sutcliffe [EMAIL PROTECTED] wrote: Hey All, I've defined a HOME environment variable as %HOMEDRIVE%%HOMEPATH%. In a command prompt, if get the following: echo %HOME% C:\Documents and Settings\user ID In gvim, I get the following: :e $HOME\ which expands to :e c:\Documents\ and\ Settings\user ID\Application\ Data\ Is there some reason why vim is ignoring the HOME variable I've set? What is interesting is that my _viminfo is being read from C:\Documents and Settings\user ID just fine. Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
$HOME inconsistent in Windows?
Hey All, I've defined a HOME environment variable as %HOMEDRIVE%%HOMEPATH%. In a command prompt, if get the following: echo %HOME% C:\Documents and Settings\user ID In gvim, I get the following: :e $HOME\ which expands to :e c:\Documents\ and\ Settings\user ID\Application\ Data\ Is there some reason why vim is ignoring the HOME variable I've set? What is interesting is that my _viminfo is being read from C:\Documents and Settings\user ID just fine. Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: $HOME inconsistent in Windows?
Chris Sutcliffe wrote: Hey All, I've defined a HOME environment variable as %HOMEDRIVE%%HOMEPATH%. In a command prompt, if get the following: echo %HOME% C:\Documents and Settings\user ID In gvim, I get the following: :e $HOME\ which expands to :e c:\Documents\ and\ Settings\user ID\Application\ Data\ Is there some reason why vim is ignoring the HOME variable I've set? What is interesting is that my _viminfo is being read from C:\Documents and Settings\user ID just fine. Chris Maybe you set it to something different? :view $HOMEDRIVE$HOMEPATH/_vimrc /$HOME :verbose set viminfo? Best regards, Tony. -- A team playing baseball in Dallas Called the umpire blind out of malice. While this worthy had fits The team made eight hits And a girl in the bleachers named Alice.
[Fwd: Re: $HOME inconsistent in Windows?]
Forward to list Original Message Subject: Re: $HOME inconsistent in Windows? Date: Wed, 9 May 2007 20:22:53 -0400 From: Chris Sutcliffe [EMAIL PROTECTED] To: A.J.Mechelynck [EMAIL PROTECTED] References: [EMAIL PROTECTED] [EMAIL PROTECTED] Maybe you set it to something different? :view $HOMEDRIVE$HOMEPATH/_vimrc /$HOME There is nothing there because I use a global vimrc. I can't find HOME defined anywhere in my vim71a files: C:\Program Files\Vim\vim71afindstr /s /n $HOME *.vim autoload\getscript.vim:81: if exists('$HOME') isdirectory(expand($HOME)./.s:dotvim) autoload\getscript.vim:82: let s:autoinstall= $HOME./.s:dotvim autoload\netrw.vim:1425:if s:FileReadable(expand($HOME/.netrc)) !g:netrw_ignorenetrc autoload\netrw.vim:1463: elseif s:FileReadable(expand($HOME/.netrc)) autoload\netrw.vim:4494: let dirname= substitute(a:1,'\~',expand($HOME),'') ftplugin\man.vim:139: silent exec edit $HOME/.page...sect.~ ftplugin\ruby.vim:177: 2. Copy matchit.txt into a doc directory (e.g. $HOME/.vim/doc). ftplugin\ruby.vim:179: 3. Copy matchit.vim into a plugin directory (e.g. $HOME/.vim/plugin). ftplugin\ruby.vim:183: 5. Ensure you have this line in your $HOME/.vimrc: menu.vim:186:if $HOME != '' menu.vim:187: let fname = $HOME/_vimrc menu.vim:194:let fname = $HOME/.vimrc syntax\groovy.vim:22: 1) copy the file in the (global or user's $HOME/.vim/syntax/) syntax folder syntax\groovy.vim:27: in the global vim filetype.vim file or inside $HOME/.vim/filetype.vim syntax\groovy.vim:38: in the global scripts.vim file or in $HOME/.vim/scripts.vim :verbose set viminfo? Last set from C:\Program Files\Vim\vim71a\vimrc_example.vim Doing a :vimgrep $HOME I found the following in todo.txt (under MSDOS, OS/2, and Win32): 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:\ In general it looks like odd things are occurring when expanding system variables, APPDATA is being used all the time when expanding $HOME, $HOMEDRIVE$HOMEPATH or $USERPROFILE. COMMON_APPDATA is being used when expanding $ALLUSERSPROFILE. $SystemDrive is expanding to C:Makefile. FWIW, I'm using 7.1a.1 compiled with MinGW. Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: [Fwd: Re: $HOME inconsistent in Windows?]
Forward to list Sorry, forgot to check the To field in the reply... Cheers! Chris -- Chris Sutcliffe http://ir0nh34d.googlepages.com http://ir0nh34d.blogspot.com http://emergedesktop.org
Re: [Fwd: Re: $HOME inconsistent in Windows?]
Chris Sutcliffe wrote: Forward to list Sorry, forgot to check the To field in the reply... Cheers! Chris Next time, use Reply to All (or Reply to List if your mailer offers it). Best regards, Tony. -- George Orwell 1984. Northwestern 0. -- Chicago Reader 10/15/82