:VundleLog - shows commands log
This commit is contained in:
parent
814c420ec2
commit
8a253e4154
@ -11,6 +11,8 @@ com! -nargs=0 BundleDocs call vundle#installer#helptags()
|
|||||||
|
|
||||||
com! -nargs=+ -bang BundleSearch silent call vundle#scripts#search('<bang>', <q-args>)
|
com! -nargs=+ -bang BundleSearch silent call vundle#scripts#search('<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()
|
||||||
|
@ -10,6 +10,7 @@ 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
|
||||||
|
@ -37,11 +37,12 @@ endf
|
|||||||
|
|
||||||
func! s:sync(bang, bundle)
|
func! s:sync(bang, bundle)
|
||||||
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 >/dev/null 2>&1'
|
silent exec '!cd '.a:bundle.path().'; git pull 2>&1 >>'.g:vundle_log
|
||||||
else
|
else
|
||||||
silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' >/dev/null 2>&1'
|
silent exec '!git clone '.a:bundle.uri.' '.a:bundle.path().' 2>&1 >>'.g:vundle_log
|
||||||
endif
|
endif
|
||||||
return 1
|
return 1
|
||||||
endf
|
endf
|
||||||
|
Loading…
Reference in New Issue
Block a user