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)?

-Tim



:ver
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Jul  5 2022 15:41:14)
Included patches: 1-16
Compiled by root@130amd64-quarterly-job-15
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     -perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +vim9script
+cmdline_hist      +langmap           -python            +viminfo
+cmdline_info      +libcall           +python3           +virtualedit
+comments          +linebreak         +quickfix          +visual
+conceal           +lispindent        +reltime           +visualextra
+cryptv            +listcmds          +rightleft         +vreplace
+cscope            +localmap          -ruby              +wildignore
+cursorbind        -lua               +scrollbind        +wildmenu
+cursorshape       +menu              +signs             +windows
+dialog_con        +mksession         +smartindent       +writebackup
+diff              +modify_fname      -sodium            +X11
+digraphs          +mouse             -sound             +xfontset
-dnd               -mouseshape        +spell             -xim
-ebcdic            +mouse_dec         +startuptime       -xpm
+emacs_tags        -mouse_gpm         +statusline        +xsmp_interact
+eval              -mouse_jsbterm     -sun_workshop      +xterm_clipboard
+ex_extra          +mouse_netterm     +syntax            -xterm_save
+extra_search      +mouse_sgr         +tag_binary
-farsi             +mouse_sysmouse    -tag_old_static
   system vimrc file: "/usr/local/etc/vim/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/etc/vim"
 f-b for $VIMRUNTIME: "/usr/local/share/vim/vim90"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H -DLIBICONV_PLUG -I/usr/local/incl
ude -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -D_R
EENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -I/usr/local/include
Linking: cc -L/usr/local/lib -fstack-protector-strong -L/usr/local/lib -Wl,--as-
needed -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lelf -pthread
-lncursesw -lrt -lintl -L/usr/local/lib/python3.9/config-3.9 -lpython3.9 -lcrypt
 -lintl -ldl -L/usr/local/lib -lintl -lutil -lm -lm




-- 
-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/YvKfSdGKYtRjbBPe%40thechases.com.

Reply via email to