Bug#864074: vim: 'set mouse=' in /etc/vim/vimrc.local is ignored unless ~/.vimrc exists

James McCoy jamessan at debian.org
Sun Jun 4 02:48:23 UTC 2017


On Sun, Jun 04, 2017 at 02:10:08AM +0200, Andreas Beckmann wrote:
> for me the default of 'set mouse=a' is a misfeature, so I want to
> disable it globally (my mouse usage ends after marking +
> middle-click pasting of text in the terminal, that works fine
> without pressing shift).
> 
> Unfortunately 'set mouse=' does not work in /etc/vim/vimrc.local, it is
> just ignored. Other options work there.
> But it works if (even an empty) ~/.vimrc does exist.

Please see NEWS.Debian.gz and /etc/vim/vimrc which have similarly worded
descriptions of this:

  " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc.
  " This happens after /etc/vim/vimrc(.local) are loaded, so it will override
  " any settings in these files.
  " If you don't want that to happen, uncomment the below line to prevent
  " defaults.vim from being loaded.
  " let g:skip_defaults_vim = 1

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



More information about the pkg-vim-maintainers mailing list