Hello,

:h viminit says:

     c. Four places are searched for initializations.  The first that
exists
        is used, the others are ignored.  The $MYVIMRC environment
variable is
        set to the file that was first found, unless $MYVIMRC was
already set.
        -  The environment variable VIMINIT (see also |compatible-
default|) (*)
           The value of $VIMINIT is used as an Ex command line.
        -  The user vimrc file(s):
                    "$HOME/.vimrc"      (for Unix and OS/2) (*)

I use the $VIMINIT variable to share a single .VIMRC file from
multiple accounts. The variable holds
    so /shared/path/.vimrc

However, with this setting, $MYVIMRC is not set. Is this OK? I guess
it is logical, because vim has no easy way to figure out that my
$VIMINIT actually sources a .VIMRC file. If this is so, perhaps the
help file could mention this. What do you think?

For my own needs, I have changed $VIMINIT to
    so /shared/path/.vimrc | let $MYVIMRC = "/shared/path/.vimrc"

Thanks,
Sam

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

Reply via email to