On Sat, Jan 2, 2016 at 7:06 AM, tot-to <[email protected]> wrote:
> Hi Ken,
>
> Thanks, it says "Last set from /etc/vim/vimrc"
>
> I've found the place in that file, where it sets the variable. This is
> apparently distribution (Gentoo) specific settings:

Many Linux distributions, when they compile Vim, change the default
"system vimrc" location and set it to /etc/vimrc rather than
$VIM/vimrc. My openSUSE distro does the same, of course with a
(probably) different /etc/vimrc. You can see that referenced in the
Gentoo Vim by executing the ":version" command; about halfway down the
output, as the first line after the list of features
yes-or-no-compiled-in, you will (I bet) see a line saying "system
vimrc file: /etc/vimrc".

Since I compile my own Vim, I don't have this problem: by default it has
$VIM = /usr/local/share/vim
$VIMRUNTIME = /usr/local/share/vim/vim74
system vimrc = $VIM/vimrc
user vimrc = $HOME/.vimrc

but since I want to use the same set of custom plugins even when (e.g.
because a change of libraries temporarily broke my own Vim) I have to
use openSUSE Vim, I "cheat" a little: near the top of my vimrc, after
Vim has started, set $VIMRUNTIME as above, and found that there was no
/usr/local/share/vim/vimrc, I set $VIM to /usr/share/vim (the openSUSE
value) and that's where (in a "vimfiles" subdirectory) I keep my
custom plugins.


Best regards,
Tony.

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui