|
|
|
@ -4,7 +4,7 @@ func! vundle#installer#new(bang, ...) abort |
|
|
|
\ map(copy(a:000), 'vundle#config#init_bundle(v:val, {})') |
|
|
|
|
|
|
|
let names = vundle#scripts#bundle_names(map(copy(bundles), 'v:val.name_spec')) |
|
|
|
call vundle#scripts#view('Installer',['" Installing bundles to '.expand(g:bundle_dir)], names + ['Helptags']) |
|
|
|
call vundle#scripts#view('Installer',['" Installing bundles to '.expand(g:bundle_dir, 1)], names + ['Helptags']) |
|
|
|
|
|
|
|
call s:process(a:bang, (a:bang ? 'add!' : 'add')) |
|
|
|
|
|
|
|
@ -125,7 +125,7 @@ endf |
|
|
|
|
|
|
|
func! vundle#installer#clean(bang) abort |
|
|
|
let bundle_dirs = map(copy(g:bundles), 'v:val.path()') |
|
|
|
let all_dirs = split(globpath(g:bundle_dir, '*'), "\n") |
|
|
|
let all_dirs = split(globpath(g:bundle_dir, '*', 1), "\n") |
|
|
|
let x_dirs = filter(all_dirs, '0 > index(bundle_dirs, v:val)') |
|
|
|
|
|
|
|
if empty(x_dirs) |
|
|
|
@ -178,7 +178,7 @@ endf |
|
|
|
func! s:has_doc(rtp) abort |
|
|
|
return isdirectory(a:rtp.'/doc') |
|
|
|
\ && (!filereadable(a:rtp.'/doc/tags') || filewritable(a:rtp.'/doc/tags')) |
|
|
|
\ && !(empty(glob(a:rtp.'/doc/*.txt')) && empty(glob(a:rtp.'/doc/*.??x'))) |
|
|
|
\ && !(empty(glob(a:rtp.'/doc/*.txt', 1)) && empty(glob(a:rtp.'/doc/*.??x', 1))) |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:helptags(rtp) abort |
|
|
|
@ -192,7 +192,7 @@ func! s:helptags(rtp) abort |
|
|
|
endf |
|
|
|
|
|
|
|
func! s:sync(bang, bundle) abort |
|
|
|
let git_dir = expand(a:bundle.path().'/.git/') |
|
|
|
let git_dir = expand(a:bundle.path().'/.git/', 1) |
|
|
|
if isdirectory(git_dir) |
|
|
|
if !(a:bang) | return 'todate' | endif |
|
|
|
let cmd = 'cd '.shellescape(a:bundle.path()).' && git pull' |
|
|
|
|