1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 10:20:05 +08:00

Add support for custom dir

This commit is contained in:
wsdjeg 2017-01-09 21:24:09 +08:00
parent 438f3fdf2b
commit d9093a1103

View File

@ -140,9 +140,16 @@ function! SpaceVim#loadCustomConfig() abort
if filereadable(custom_glob_conf)
exe 'source ' . custom_glob_conf
endif
if isdirectory(expand('~/.SpaceVim.d/'))
set runtimepath^=~/.SpaceVim.d
endif
if !empty(custom_confs)
exe 'source ' . custom_confs[0]
endif
if isdirectory('.SpaceVim.d')
exe 'set rtp ^=' . expand('.SpaceVim.d')
endif
endfunction
""