diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:57:11 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 02:57:11 +0000 |
commit | 988702b080fb10062cd8eaf7ea38da2e80d2674b (patch) | |
tree | 984d85774dbc75f4150aa2ae52bf9fa7a7396061 /debian/runtime | |
parent | Disabling BufReadPost. (diff) | |
download | vim-988702b080fb10062cd8eaf7ea38da2e80d2674b.tar.xz vim-988702b080fb10062cd8eaf7ea38da2e80d2674b.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 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 |