Keven Lyda wrote:
> On Sunday, July 24, 2016 at 2:03:06 PM UTC+1, Bram Moolenaar wrote:
> > Vim has always been conservative about the default option values.
> > Without any .vimrc the default is 'compatible'. That's nice for people
> > who rely on the old Vi. But how many of these still exist? I expect
> > nearly all Vim users to want 'nocompatible', thus create a .vimrc ASAP.
> >
> > What has stopped me from changing this is the unexpected change. Many
> > users will notice that Vim suddenly behaves differently. Some may be
> > upset. The release of Vim 8.0 might be the best point in time to do
> > this. If we do this.
>
> So this was unfortunate.
And more than a year ago...
> I like the idea of moving forward but kind of bummed how it was done.
> Specifically:
>
> On Ubuntu the vim8 package has a /etc/vim/vimrc which pulls in a
> /etc/vim/vimrc.local if it exists. With vim8 "set mouse=a" is the
> default when a mouse is detected. And that's fine for lots of folks
> but I'm not a fan so I'd like to disable it system-wide. So I put
> "set mouse=" in /etc/vim/vimrc.local and I'm good, yes?
>
> No. No I'm not. It seems that /usr/share/vim/vim80/defaults.vim (which
> was mildly hard to find btw) is sourced after /etc/vim/vimrc and
> /etc/vim/vimrc.local. This seems unfortunate. And yes, I'm aware
> per-user .vimrc's are a thing but I'd rather set this system-wide w/o
> editing the distribution files.
>
> And that was possible with /etc/vim/vimrc.local but now is not. Is
> this something that could be changed and would it be a vim issue or a
> vim packaging issue?
System-wide Vim initialisation, especialy from a distribution, generally
makes things more complicated. It's like second guessing the Vim
defaults, and then letting the user figure out what happened. The help
will show different values, thus the user is confused.
Ubuntu is quite conservitive in /etc/vim/vimrc, this appears to be
coming from Debian. Lots of comments, what is actually doing something:
runtime! debian.vim
Hmm, this depends on 'runtimepath' which would have to be build into the
executable. If you compile your own Vim this probably doesn't work.
It triggers the load of /usr/share/vim/vim80/debian.vim, which contains
some random settings that the Debian maintainer apparently prefers. It
sets 'history' to 50, even though that's already the default. And turns
on 'ruler', which seems like a random choice.
Then there is:
if has("syntax")
syntax on
endif
OK, so force syntax highlighting onto all users. And before loading
color schemes and setting up your own filetypes...
Oh well, if you compile your own Vim then /etc/vim/vimrc most likely
won't be used.
Realy, the system-wide vimrc was meant to be used for system-specific
settings. E.g. the path of tools, spell files, etc. Not for user
preferences.
--
Friends? I have lots of friends! In fact, I have all episodes ever made.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.