Stefano Zacchiroli wrote:
On Thu, Jan 18, 2007 at 05:46:55PM +0100, A.J.Mechelynck wrote:
Vim defaults to 'compatible' mode everywhere, except where it finds a "user" _vimrc or .vimrc (system vimrc doesn't count).

I personally recommend to create the following as $HOME/_vimrc (or $HOME/.vimrc) immediately after first installation, and to add tweaks as one gets going:

This isn't really applicable to *nix-like systems, where you have tons
of users, and packages as vim are usually installed system-wide.

As a sysadm, should I install .vimrc on the home of every user? Should I
modify the /etc/skel/ dir so that every new user get a .vimrc upon
account creation? Ok that "vim" is my second most used command (after
"ls" :-)), but this is really too much to ask for just an editor.

Rather, time is probably mature to ship vim with 'compatible' mode off
by default, explaining ancient *nix lovers how to turn it *on*.

Cheers.


As a sysadmin, you have every right, even that of making users angry at you, calling them lusers, and answering them with a 2-by-4 like any bad-tempered BOFH.

Seriously now, you can setup /usr/share/vim/vimrc (or something) to invoke the vimrc_example.vim (which sets 'nocompatible' explicitly) and that would be system-wide without interfering with every user's right to set up his own ~/.vimrc the way he liked -- or not at all. It /would/ interfere with the expectation that vi (when called as vi) should start in 'compatible' mode, I suppose; but there might be ways to care for that too, maybe through an alias from 'vi' to 'vim -u NONE'.


Best regards,
Tony.

Reply via email to