How to make a global ~/.vimrc?

Right now, I make everyone do ~/.vimrc and put their settings there.

How can I make a global, default .vimrc for new users?


Solution 1:

usually by creating /etc/vimrc or /etc/vim/vimrc. Depends on your version of vim and linux/unix

Solution 2:

to create a default ~/.vimrc for all new users, you should be able to drop it into /etc/skel

If I recall correctly, that provides the template for new user's home directories.

Solution 3:

In Debian, it appears the file you are looking for is:

/etc/vim/vimrc

It might be different in a different distro (though I think that is not much likely).

Good luck.