go without Vundle log
This commit is contained in:
parent
8496d6c604
commit
3edc20673d
@ -23,9 +23,6 @@ com! -nargs=0 BundleDocs
|
|||||||
com! -nargs=? -bang BundleSearch
|
com! -nargs=? -bang BundleSearch
|
||||||
\ call vundle#scripts#all('!' == '<bang>', <q-args>)
|
\ call vundle#scripts#all('!' == '<bang>', <q-args>)
|
||||||
|
|
||||||
com! -nargs=0 VundleLog
|
|
||||||
\ silent pedit `=g:vundle_log`
|
|
||||||
|
|
||||||
func! vundle#rc()
|
func! vundle#rc()
|
||||||
let g:bundle_dir = expand('$HOME/.vim/bundle')
|
let g:bundle_dir = expand('$HOME/.vim/bundle')
|
||||||
call vundle#config#init()
|
call vundle#config#init()
|
||||||
|
@ -7,7 +7,6 @@ endf
|
|||||||
|
|
||||||
func! vundle#config#init()
|
func! vundle#config#init()
|
||||||
if !exists('g:bundles') | let g:bundles = [] | endif
|
if !exists('g:bundles') | let g:bundles = [] | endif
|
||||||
let g:vundle_log = tempname()
|
|
||||||
call s:rtp_rm_a()
|
call s:rtp_rm_a()
|
||||||
let g:bundles = []
|
let g:bundles = []
|
||||||
endf
|
endf
|
||||||
|
@ -52,15 +52,15 @@ func! s:helptags(rtp)
|
|||||||
helptags `=a:rtp.'/doc'`
|
helptags `=a:rtp.'/doc'`
|
||||||
endf
|
endf
|
||||||
|
|
||||||
func! s:sync(bang, bundle)
|
func! s:sync(bang, bundle) abort
|
||||||
let git_dir = a:bundle.path().'/.git'
|
let git_dir = a:bundle.path().'/.git'
|
||||||
silent exec '!echo "* '.a:bundle.name.'" 2>&1 >>'. g:vundle_log
|
|
||||||
if isdirectory(git_dir)
|
if isdirectory(git_dir)
|
||||||
if !(a:bang) | return 0 | endif
|
if !(a:bang) | return 0 | endif
|
||||||
silent exec '!cd '.a:bundle.path().'; git pull 2>&1 >>'.g:vundle_log
|
let cmd = 'cd '.a:bundle.path().' && git pull'
|
||||||
else
|
else
|
||||||
silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log
|
let cmd = 'git clone '.a:bundle.uri.' '.a:bundle.path()
|
||||||
endif
|
endif
|
||||||
|
silent exec '!'.cmd
|
||||||
return 1
|
return 1
|
||||||
endf
|
endf
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user