Bug#837761: vim: doesn't honor local admin settings in /etc/vim/vimrc.local

James McCoy jamessan at debian.org
Sat Oct 1 17:53:43 UTC 2016


Control: reassign -1 vim-runtime 2:7.4.2330-1
Control: forcemerge -1 837880 837793

On Sat, Oct 01, 2016 at 02:46:33PM +0200, harald at a-little-linux-box.at wrote:
> while it's perfectly ok that upstream changed it's configuration I
> consider it a bug that this configuration can't be overriden systemwide
> - at least it seems the preferred way of creating a /etc/vim/vimrc.local
> file can't override the set mouse=a setting (currently I modified the
> /usr/share/vim/vim80/defaults.vim file but as this file will be
> overwritten when the package is upgraded I consider this a workaround,
> not a solution).

As described in defaults.vim, you can "let skip_defaults_vim = 1" to
prevent it from applying any of its settings, so just put that in
/etc/vim/vimrc.local and your settings will be preserved.

> From my prelimiary analysis it seems the problem is that
> /usr/share/vim/vim80/defaults.vim gets included multiple times

Can you show the output of ":scriptnames" to prove that?

> which it
> definitly shouldn't. As it seems only possible to override this problem
> on a per user base I would consider this definitly a bug...

It is possible to prevent it from setting anything, and then put
whatever config you want in /etc/vim/vimrc.local.  The bug, if anything,
is that I didn't add a NEWS entry describing defaults.vim and how to
disable it.

Merging with the other bugs about the same issue.

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



More information about the pkg-vim-maintainers mailing list