Tuesday, August 9, 2022

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

Tim Chase wrote:

> I upgraded packages on my FreeBSD box yesterday and noticed that
> vimrc behavior had changed.
>
> Prior to the upgrade, if I had a ~/.vimrc it wouldn't source the
> defaults.vim file.
>
> :help VIMINIT
>
> > The first that exists is used, the others are ignored.
>
> and it proceeds to list .vimrc (which I have) and, later down,
> defaults.vim (which should be ignored because I have a .vimrc)
>
> However, 'scrolloff' and 'mouse' are now annoyingly getting set
> (along with other defaults.vim tweaks):
>
> :verbose set scrolloff? mouse?
> mouse=nvi
> Last set from /usr/local/share/vim/vim90/defaults.vim line 85
> scrolloff=5
> Last set from /usr/local/share/vim/vim90/defaults.vim line 51
>
> According to tracing startup:
>
> :scriptnames
> 1: /usr/local/etc/vim/vimrc
> 2: /usr/local/share/vim/vim90/defaults.vim
> 3: /usr/local/share/vim/vim90/filetype.vim
> 4: /usr/local/share/vim/vim90/ftplugin.vim
> 5: /usr/local/share/vim/vim90/indent.vim
> 6: /usr/local/share/vim/vim90/syntax/syntax.vim
> 7: /usr/local/share/vim/vim90/syntax/synload.vim
> 8: /usr/local/share/vim/vim90/syntax/syncolor.vim
> 9: /usr/local/share/vim/vim90/colors/lists/default.vim
> 10: /usr/local/share/vim/vim90/syntax/nosyntax.vim
> 11: ~/.vimrc
> [snip]
>
> it's the /usr/local/etc/vim/vimrc causing the issue.
>
> Is this a FreeBSD package customization problem (and I should go
> grumble to the FreeBSD package maintainer(s)), or did the default
> system vimrc start ignoring the description in `:help VIMINIT`, and
> force defaults.vim on those of us who detest it (in which case,
> please revert this)?

Vim does not include a system-wide vimrc file that would go in
/usr/local/etc/vim. Does this file source defaults.vim? Then that's a
problem of FreeBSD.

--
Microsoft: "Windows NT 4.0 now has the same user-interface as Windows 95"
Windows 95: "Press CTRL-ALT-DEL to reboot"
Windows NT 4.0: "Press CTRL-ALT-DEL to login"

/// 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/20220809210637.B29A01C05A0%40moolenaar.net.

No comments: