Wednesday, August 10, 2022

Re: New version of vim unsolicitedly sourcing defaults.vim?

Tim Chase wrote:

> On Tue, Aug 09, 2022 at 10:06:37PM +0100, Bram Moolenaar wrote:
> > Vim does not include a system-wide vimrc file that would go in
> > /usr/local/etc/vim. Does this file source defaults.vim?
>
> Yes, this file sources defaults.vim
>
> I was unsure of its provenance, but with your confirmation that
> it's not part of vim-proper's installation, it looks like a FreeBSD
> thing:
>
> > Then that's a problem of FreeBSD.
>
> Yep, as Yegappan found, this bug is tracking the issue at hand:
>
> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251420
>
> I've got a FreeBSD Bugzilla account and will follow up there.

It should be made clear to them that the basic idea behind defaults.vim
is to set nicer defaults for new users. Existing users, who have a
~/.vimrc with their preferences, should not get defaults.vim
automatically.

Since /usr/local/etc/vi/vimrc appears to intend to set some system-wide
preferences, which might be overruled by defaults.vim if the user
doesn't have a .vimrc file, they have been struggling with this. They
probably want to disable loading defaults.vim and set their own
preferences. Bad luck for new users, they will have to figure out their
own settings. And they will keep discussing forever what the defaults
for everybody on the system should be.

An alternative would be to check if ~/.vimrc exists, and only load
defaults.vim then. Then it's closer to what Vim normally does (but then
the overrides may still confuse the user).

--
He was not in the least bit scared to be mashed into a pulp
Or to have his eyes gouged out and his elbows broken;
To have his kneecaps split and his body burned away
And his limbs all hacked and mangled, brave Sir Robin.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
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/20220810100755.62D6F1C0EC3%40moolenaar.net.

No comments: