From c6f7607e850eff6f8699b0114167da952077da6c Mon Sep 17 00:00:00 2001 From: gmarik Date: Tue, 17 Apr 2012 20:12:11 -0500 Subject: [PATCH] add `new` status --- autoload/vundle.vim | 3 ++- autoload/vundle/installer.vim | 10 +++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 096f7cc..25ce735 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -30,7 +30,8 @@ if (has('signs')) sign define Vu_error text=! texthl=Error sign define Vu_active text=> texthl=Comment sign define Vu_todate text=. texthl=Comment -sign define Vu_updated text=+ texthl=Comment +sign define Vu_new text=+ texthl=Comment +sign define Vu_updated text=* texthl=Comment sign define Vu_deleted text=- texthl=Comment endif diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index e2a8291..bd018c4 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -53,8 +53,10 @@ func! vundle#installer#run(func_name, name, ...) abort redraw - if 'updated' == status + if 'new' == status echo n.' installed' + elseif 'updated' == status + echo n.' updated' elseif 'todate' == status echo n.' already installed' elseif 'deleted' == status @@ -218,9 +220,11 @@ func! s:sync(bang, bundle) abort return 'error' end - if out =~# 'up-to-date' + if out =~# 'Cloning into ' + return 'new' + elseif out =~# 'up-to-date' return 'todate' - end + endif return 'updated' endf