diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:18:21 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:18:21 +0000 |
commit | c45cbbf44fe080883ce382c991a26a09bcf50fe1 (patch) | |
tree | a4f3f8a3d6d02343adc96b6ff81dab6674cc730e /debian/runtime | |
parent | Disabling BufReadPost. (diff) | |
download | vim-c45cbbf44fe080883ce382c991a26a09bcf50fe1.tar.xz vim-c45cbbf44fe080883ce382c991a26a09bcf50fe1.zip |
Reading configuration files in /etc/vim/vimrc.d.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/runtime')
-rw-r--r-- | debian/runtime/vimrc | 7 |
1 files changed, 7 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 |