From 8a253e41541c58d5519c0968ce6b9b0a3e6efae9 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 3 Feb 2011 23:13:46 -0600 Subject: [PATCH] :VundleLog - shows commands log --- autoload/vundle.vim | 2 ++ autoload/vundle/config.vim | 1 + autoload/vundle/installer.vim | 5 +++-- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 3fd1962..c737ffb 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -11,6 +11,8 @@ com! -nargs=0 BundleDocs call vundle#installer#helptags() com! -nargs=+ -bang BundleSearch silent call vundle#scripts#search('', ) +com! -nargs=0 VundleLog silent pedit `=g:vundle_log` + func! vundle#rc() let g:bundle_dir = expand('$HOME/.vim/bundle') call vundle#config#init() diff --git a/autoload/vundle/config.vim b/autoload/vundle/config.vim index c50dded..dc0fc2a 100644 --- a/autoload/vundle/config.vim +++ b/autoload/vundle/config.vim @@ -10,6 +10,7 @@ endf func! vundle#config#init() if !exists('g:bundles') | let g:bundles = [] | endif + let g:vundle_log = tempname() call s:rtp_rm_a() let g:bundles = [] endf diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index cdec6bb..17f18c8 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -37,11 +37,12 @@ endf func! s:sync(bang, bundle) let git_dir = a:bundle.path().'/.git' + silent exec '!echo "* '.a:bundle.name.'" 2>&1 >>'. g:vundle_log if isdirectory(git_dir) 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 - 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 return 1 endf