Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1011761: vim: Vim ignores mouse= in global config

29 views
Skip to first unread message

Helge Kreutzmann

unread,
May 26, 2022, 9:40:04 AM5/26/22
to
Package: vim
Version: 2:8.2.4793-1
Severity: normal

I just switched from an "old" machine (installed ~ 5 years ago) to a
new machine. Suddenly I could no longer insert with the middle mouse
button as root on the console.

If I run (after startup) "set mouse=r" (or n) then it worked, but I
did not want to run this manual every time.

So I put this in /etc/vim/vimrc, but nothing changed, i.e. only
"strange" pasting (not the selected string from another console as
expected). Also "mouse=" did not work.

If I create ~/.vim/vimrc with the single entry
set mouse=
then it works again.

So somehow /etc/vim/vimrc seems to be ignored (at least for this
setting).

If you want me to do some specific testing, please tell me.

-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk3
/usr/bin/vim is /usr/bin/vim.gtk3
/usr/bin/gvim is /usr/bin/vim.gtk3

-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vim depends on:
ii libacl1 2.3.1-1
ii libc6 2.33-7
ii libgpm2 1.20.7-10
ii libselinux1 3.3-1+b2
ii libsodium23 1.0.18-1
ii libtinfo6 6.3+20220423-2
ii vim-common 2:8.2.4793-1
ii vim-runtime 2:8.2.4793-1

vim recommends no packages.

Versions of packages vim suggests:
pn ctags <none>
ii vim-doc 2:8.2.4793-1
ii vim-scripts 20210124.2

-- no debconf information

--
Dr. Helge Kreutzmann deb...@helgefjell.de
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
signature.asc

James McCoy

unread,
May 28, 2022, 11:20:04 AM5/28/22
to
On Sat, May 28, 2022 at 04:45:43PM +0200, Helge Kreutzmann wrote:
> On Fri, May 27, 2022 at 05:01:00PM -0400, James McCoy wrote:
> > This is mentioned at the top of /etc/vim/vimrc:
> >
> >
> > " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
>
> On my freshly installed machine (for root), $VIMRUNTIME is not set,

$VIMRUNTIME is an internal variable Vim sets -- ":help $VIMRUNTIME".

I can add an example value here to make it more obvious what the path
is.

> nor is there a "defaults.vim" neither below /etc nor /root.

"dpkg -S defaults.vim"

> If this is related to /usr/share/vim/vim82/defaults.vim, then this is
> indeed not what I was looking for.

Yes, it is what you're looking for, since that's what influences the
behavior when there's no user vimrc. See ":help defaults.vim" and
previous discussion in #842833.

Cheers,
--
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7 2D23 DFE6 91AE 331B A3DB

Helge Kreutzmann

unread,
May 28, 2022, 12:10:06 PM5/28/22
to
Hello James,
thanks for the quick response and the explanation!

Greetings

Helge
signature.asc
0 new messages