|
|
|
@ -3,7 +3,7 @@ func! vundle#config#bundle(arg, ...) |
|
|
|
call extend(bundle, copy(s:bundle)) |
|
|
|
call add(g:bundles, bundle) |
|
|
|
call s:rtp_add(bundle.rtpath()) |
|
|
|
call s:require(bundle) |
|
|
|
call vundle#config#require(bundle) |
|
|
|
endf |
|
|
|
|
|
|
|
func! vundle#config#init() |
|
|
|
@ -11,6 +11,14 @@ func! vundle#config#init() |
|
|
|
let g:bundles = [] |
|
|
|
endf |
|
|
|
|
|
|
|
func! vundle#config#require(bundle) |
|
|
|
call s:rtp_add(g:bundle_dir) |
|
|
|
" TODO: it has to be relative rtpath, not bundle, name |
|
|
|
exec 'runtime! '.a:bundle.name.'/plugin/*.vim' |
|
|
|
exec 'runtime! '.a:bundle.name.'/after/*.vim' |
|
|
|
call s:rtp_rm(g:bundle_dir) |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:parse_options(opts) |
|
|
|
" TODO: improve this |
|
|
|
if len(a:opts) != 1 | return {} | endif |
|
|
|
@ -34,14 +42,6 @@ func! s:parse_name(arg) |
|
|
|
return {'name': name, 'uri': uri } |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:require(bundle) |
|
|
|
call s:rtp_add(g:bundle_dir) |
|
|
|
" TODO: it has to be relative rtpath, not bundle, name |
|
|
|
exec 'runtime! '.a:bundle.name.'/plugin/*.vim' |
|
|
|
exec 'runtime! '.a:bundle.name.'/after/*.vim' |
|
|
|
call s:rtp_rm(g:bundle_dir) |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:rtp_rm(dir) |
|
|
|
exec 'set rtp-='.a:dir |
|
|
|
exec 'set rtp-='.expand(a:dir.'/after') |
|
|
|
|