mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
12 lines
314 B
VimL
12 lines
314 B
VimL
|
" Functions {{{
|
||
|
function! SourceIfExists(file)
|
||
|
if filereadable(expand(a:file))
|
||
|
exe 'source ' a:file
|
||
|
endif
|
||
|
endfunction
|
||
|
" }}}
|
||
|
|
||
|
" Automatically load project-specific config if present
|
||
|
let g:proj_root = finddir('.git/..', expand('%:p:h').';')
|
||
|
call SourceIfExists(expand(g:proj_root..'/project.vim'))
|