Sunday, December 29, 2013

Re: Where is my system-wide init file?

On 2013-12-29, egarrulo wrote:
> On my Linux distro there are these system-wide initialization files:
>
> /etc/vim/gvimrc
> /etc/vim/vimrc
> /etc/vim/vimrc.tiny
> /usr/share/vim/gvimrc
> /usr/share/vim/vimrc
> /usr/share/vim/vimrc.tiny
>
> Does GVim load any of them?

To find that out, execute

:scriptnames

>
> :echo $MYVIMRC
>
> returns ~/.vimrc, while
>
> :version
>
> returns
>
> system vimrc file: "$VIM/vimrc"
> user vimrc file: "$HOME/.vimrc"
> 2nd user vimrc file: "~/.vim/vimrc"
> user exrc file: "$HOME/.exrc"
> system gvimrc file: "$VIM/gvimrc"
> user gvimrc file: "$HOME/.gvimrc"
> 2nd user gvimrc file: "~/.vim/gvimrc"
> system menu file: "$VIMRUNTIME/menu.vim"
> fall-back for $VIM: "/home/egarrulo/bin/vim/vim-7.4.280/share/vim"
>
> and
>
> :echo $VIM
>
> returns:
>
> /home/egarrulo/bin/vim/vim-7.4.280/share/vim
>
> and no .vimrc is there. Thus, GVim shouldn't be loading any of the
> above system-wide init files, but it seems it does.

System vimrc files do not begin with a period, so you will not find
a ".vimrc" among them. Only user vimrc files begin with a period,
and even that is not always the case, as on Windows where the name
is _vimrc and in newer Vim's where ~/.vim/vimrc is also valid.

See

:help startup

for more.

Regards,
Gary

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: