summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:57:11 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 02:57:11 +0000
commit988702b080fb10062cd8eaf7ea38da2e80d2674b (patch)
tree984d85774dbc75f4150aa2ae52bf9fa7a7396061
parentDisabling BufReadPost. (diff)
downloadvim-988702b080fb10062cd8eaf7ea38da2e80d2674b.tar.xz
vim-988702b080fb10062cd8eaf7ea38da2e80d2674b.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.install.in1
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/runtime/vimrc b/debian/runtime/vimrc
index bee1572..5855bb7 100644
--- a/debian/runtime/vimrc
+++ b/debian/runtime/vimrc
@@ -48,6 +48,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.in b/debian/vim-common.install.in
index 79abeaa..a55ec4d 100644
--- a/debian/vim-common.install.in
+++ b/debian/vim-common.install.in
@@ -18,3 +18,4 @@ usr/share/man/pl/man1/vim.1
usr/share/man/pl/man1/vimdiff.1
usr/share/man/ru/man1/vim.1
usr/share/man/ru/man1/vimdiff.1
+debian/local/vimrc.d/* etc/vim/vimrc.d