vim: source all files under ~/.local/etc/vim
This commit is contained in:
parent
4dcc5ab8e5
commit
eb2662d1dc
1 changed files with 5 additions and 4 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue