Package: vim Severity: wishlist Tag: patch Hi,
while vim in Debian supports /etc/vim/vimrc.local for local customizations, this is not configuration management friendly as they need to edit an existing file, that's error prone and is more complicated than it needs to be.
The attach patch fixes this by also supporting /etc/vim/vimrc.d/*I'm using this since more than 16 years and it would be nice if you could merge it. I've also opened a merge request on salsa:
https://salsa.debian.org/vim-team/vim/-/merge_requests/14 Regards, Daniel
From 1f87814a71cc3c3af9d9f487b4bffe9e526d0730 Mon Sep 17 00:00:00 2001 From: Daniel Baumann <[email protected]> Date: Fri, 13 Nov 2026 17:25:35 +0100 Subject: [PATCH] Adding support for /etc/vim/vimrc.d/* to ease configuration management. Signed-off-by: Daniel Baumann <[email protected]> --- debian/runtime/gvimrc | 8 ++++++++ debian/runtime/vimrc | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/debian/runtime/gvimrc b/debian/runtime/gvimrc index 3aaea15a5..604c44ca0 100644 --- a/debian/runtime/gvimrc +++ b/debian/runtime/gvimrc @@ -15,3 +15,11 @@ if filereadable("/etc/vim/gvimrc.local") source /etc/vim/gvimrc.local endif + +" Source global configuration files if available +for file in split(globpath('/etc/vim/vimrc.d', '*'), '\n') + if filereadable(file) + exe 'source' file + endif +endfor" + diff --git a/debian/runtime/vimrc b/debian/runtime/vimrc index c43e09d1f..e262d20c3 100644 --- a/debian/runtime/vimrc +++ b/debian/runtime/vimrc @@ -62,3 +62,10 @@ if filereadable("/etc/vim/vimrc.local") source /etc/vim/vimrc.local endif +" Source global configuration files if available +for file in split(globpath('/etc/vim/vimrc.d', '*'), '\n') + if filereadable(file) + exe 'source' file + endif +endfor" + -- 2.55.0

