Sunday, December 29, 2013

Where is my system-wide init file?

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?

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

Any idea? Thanks.

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