vim: source all files under ~/.local/etc/vim

This commit is contained in:
Fernando Schauenburg 2020-12-16 00:18:37 +01:00
parent 4dcc5ab8e5
commit eb2662d1dc

View file

@ -246,8 +246,9 @@ augroup vimrc " {{{
autocmd BufWritePost vimrc source % autocmd BufWritePost vimrc source %
augroup END " }}} augroup END " }}}
let LOCAL_VIMRC=expand("$LOCAL_CONFIG/vim/vimrc") for extra_vimrc in expand("$LOCAL_CONFIG/vim/*", v:none, v:true)
if filereadable(LOCAL_VIMRC) if filereadable(extra_vimrc)
exec "source " . LOCAL_VIMRC exec "source " . extra_vimrc
endif endif
endfor