On Nov 20, 8:59 pm, "John Beckett" <[email protected]> wrote:
> Henry Hertz Hobbit wrote:
> > I have the _vimrc file in these two locations:
>
> > %UserProfile%\_vimrc
> > %ProgramFiles%\Vim
>
> > The Wiki mentions $Home for Windows.
>
> The wiki is correct.
> Vim does NOT use %USERPROFILE% or %ProgramFiles%.
>

Sorry, John. Not quite true.

Although I don't think Vim uses USERPROFILE, it *does* use the program
files directory by default. If a _vimrc is not found in $HOME, Vim
looks it the $VIM directory, which defaults to %ProgramFiles%\Vim (or
whereever you install).

But the OP seems to not realize that Vim builds $HOME, if it does not
exist, as %HOMEDRIVE%%HOMEPATH%.

USERPROFILE is mentioned in the todo list as a good fallback for
%HOMEDRIVE%%HOMEPATH% but I don't think that's implemented yet.

> > I also have these environment variables
> > Vim=C:\Program Files\Vim
> > VimRunTime=C:\Program Files\Vim\vim73
>
> I do not know if $VIM works with an embedded space, but I don't
> recall hearing about any problems with it.
>

Also, Vim will determine these variables by itself, you shouldn't need
to set them at all.

-- 
You received this message from the "vim_use" 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

Reply via email to