diff options
-rw-r--r-- | debian/runtime/vimrc | 7 | ||||
-rw-r--r-- | debian/vim-common.install.in | 1 |
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 |