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 %
|
||||
augroup END " }}}
|
||||
|
||||
let LOCAL_VIMRC=expand("$LOCAL_CONFIG/vim/vimrc")
|
||||
if filereadable(LOCAL_VIMRC)
|
||||
exec "source " . LOCAL_VIMRC
|
||||
for extra_vimrc in expand("$LOCAL_CONFIG/vim/*", v:none, v:true)
|
||||
if filereadable(extra_vimrc)
|
||||
exec "source " . extra_vimrc
|
||||
endif
|
||||
endfor
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue