Bug#837761: vim: doesn't honor local admin settings in /etc/vim/vimrc.local
Francois Gouget
fgouget at free.fr
Wed Oct 5 10:02:32 UTC 2016
Package: vim-common
Version: 2:8.0.0003-1
Followup-For: Bug #837761
Dear Maintainer,
The fix in 8.0.0022 does not sound like much of a fix: it is still
impossible to override specific defaults.vim settings.
I'll also note that, at least in 8.0.0003, defaults.vim says:
| " This is loaded if no vimrc file was found.
| " Except when Vim is run with "-u NONE" or "-C".
| " Individual settings can be reverted with ":set option&".
Which is patently false:
* /etc/vim/vimrc exists and yet /usr/share/vim/vim80/defaults.vim is
loaded too.
* The settings cannot be reverted with ":set option&" since the Debian
package makes it impossible to run commands after defaults.vim.
As harald said this is at the root an "order of inclusion" issue. So a
better solution would be to load all these extra configuration files
near the end of /etc/vim/vimrc but before /etc/vim/vimrc.local is
invoked.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.7.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages vim-common depends on:
ii xxd 2:8.0.0003-1+b1
Versions of packages vim-common recommends:
ii vim 2:8.0.0003-1+b1
vim-common suggests no packages.
-- no debconf information
More information about the pkg-vim-maintainers
mailing list