summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:54:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 08:54:12 +0000
commit5aaae80c817dde9966921bd625f156033be21cd1 (patch)
treeb4c0fb3d1988fe5352cb8f40fff0498cba5c7238
parentDisabling BufReadPost. (diff)
downloadvim-5aaae80c817dde9966921bd625f156033be21cd1.tar.xz
vim-5aaae80c817dde9966921bd625f156033be21cd1.zip
Reading configuration files in /etc/vim/vimrc.d.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/runtime/vimrc7
-rw-r--r--debian/vim-common.install1
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/runtime/vimrc b/debian/runtime/vimrc
index 21b7c1c..3cb8b8a 100644
--- a/debian/runtime/vimrc
+++ b/debian/runtime/vimrc
@@ -55,6 +55,13 @@ runtime! debian.vim
"set hidden " Hide buffers when they are abandoned
"set mouse=a " Enable mouse usage (all modes)
+" Source global configuration files if available
+for file in split(globpath('/etc/vim/vimrc.d', '*'), '\n')
+ if filereadable(file)
+ exe 'source' file
+ endif
+endfor"
+
" Source a global configuration file if available
if filereadable("/etc/vim/vimrc.local")
source /etc/vim/vimrc.local
diff --git a/debian/vim-common.install b/debian/vim-common.install
index fb67e07..e56f7fe 100644
--- a/debian/vim-common.install
+++ b/debian/vim-common.install
@@ -20,3 +20,4 @@ usr/share/man/ru/man1/vim.1
usr/share/man/ru/man1/vimdiff.1
usr/share/man/tr/man1/vim.1
usr/share/man/tr/man1/vimdiff.1
+debian/local/vimrc.d/* etc/vim/vimrc.d