On Fri, 17 Jan 2020 at 13:10, DwigtArmyOfChampions
<dwightarmyofchampions@hotmail.com> wrote:
>
> I am using Vim 7.4. I have a file /etc/vimrc, but when I vim a file and run the :scriptnames command, the very first file loaded is ~/.vimrc.
>
> On another Linux machine I also have Vim 7.4 installed, and when run the vim command and then run :scriptnames, that loads /etc/vimrc.
>
> Where is this loading order determined?
I have this is my help file:
system-vimrc
b. For Unix, MS-DOS, MS-Windows, OS/2, VMS, Macintosh, RISC-OS and Amiga
the system vimrc file is read for initializations. The path of this
file is shown with the ":version" command. Mostly it's "$VIM/vimrc".
Note that this file is ALWAYS read in 'compatible' mode, since the
automatic resetting of 'compatible' is only done later. Add a ":set
nocp" command if you like.
For the Macintosh the $VIMRUNTIME/macmap.vim is read.
VIMINIT .vimrc _vimrc EXINIT .exrc _exrc $MYVIMRC
$ vim --version
[...]
system vimrc file: "/usr/pkg/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/pkg/share/vim"
echo $VIM
/usr/pkg/share/vim
--
Ottavio Caruso
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAEJNuHy3NVMLeqvzUyoE3uW_%2BKspfLqmpQXbB%3D-p7jmie%2BRHyg%40mail.gmail.com.
No comments:
Post a Comment