On Fri, 2011-03-18 at 18:35 -0400, James Vega wrote:
> 
> The default vimrc is no vimrc.

...except on Windows...

> There's an example vimrc that the installer installs to $VIM (which
> one can change through the "Advanced" install options).
>
> Part of the confusion, IMO, is that, on Windows, Vim treats
> $VIM/_vimrc as an alternative location for the user's vimrc instead
> of as the system-wide vimrc. So, unlike on unix-like platforms,
> $VIM/_vimrc is *only* sourced if $HOME/_vimrc doesn't exist instead
> of always being sourced.

I'm a little confused here, unless the user adds $HOME/_vimrc, then
$VIM/_vimrc will be sourced by default, no? Which means there IS a
default vimrc on Windows.

> The other bit is that the Windows installers (both yours and
> Bram's), have decided to use this to, by default, coddle new users
> by installing a vimrc to $VIM/_vimrc enabling a bunch of options to
> make Vim act more like a typical Windows application. That may be
> the right thing to do for new users, and leave the more experienced
> users to unselect that option (as I do) when installing Vim on a new
> Windows system. It depends on what learning curve you want to
> present to new users.

Our installer is simply trying to duplicate the default Vim installer
behavior. Whatever gets decided for the default will get adapted to
ours.

I also agree that the mswin option is confusing. I don't think that
keeping it makes Vim any more understandable. (One of the reasons
Cream was originally developed.) It forks the default Vim behavior by
platform. (Ironically, Cream was developed to maintain the standard
CUA behavior + features ACROSS platforms.)

But then, should &nocompatible be set by default on Windows, too?

> > IMO, the "correct" behavior should be an empty vimrc named
> > "vimrc-example". Various features can be included (commented) with
> > simple explanatory text, like a reference tutorial of the top 100
> > features most users tamper with. The first line explains how to
> > rename the file to "activate" it.
> 
> Something similar to <http://vim.wikia.com/wiki/Example_vimrc>, but
> with more settings commented out?

Exactly.

-- 
Steve Hall  [ digitect dancingpaper com ]


-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui