From a3f1c1e53719c2cb68ffb50d1a97d9b60938ec34 Mon Sep 17 00:00:00 2001 From: gmarik Date: Thu, 4 Aug 2011 16:33:30 -0500 Subject: [PATCH] move signs to vundle.vim and use 3 states - ! is error - . is up-to-date - * is updated --- autoload/vundle.vim | 4 ++++ autoload/vundle/installer.vim | 4 ++-- autoload/vundle/scripts.vim | 3 --- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/autoload/vundle.vim b/autoload/vundle.vim index 3db276b..a499c08 100644 --- a/autoload/vundle.vim +++ b/autoload/vundle.vim @@ -27,6 +27,10 @@ com! -nargs=? -bang BundleSearch au Filetype vundle call vundle#scripts#setup_view() au Syntax vim syn keyword vimCommand Bundle +sign define VuEr text=! texthl=Error +sign define VuCu text=. texthl=Comment +sign define VuUp text=* texthl=Comment + func! vundle#rc(...) abort let g:bundle_dir = len(a:000) > 0 ? expand(a:1) : expand('$HOME/.vim/bundle') diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index c1d4f6a..dbbd2e7 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -53,10 +53,10 @@ func! vundle#installer#install(bang, name) abort if 'updated' == status echo b.name.' installed' - exe ":sign place ".line('.')." line=".line('.')." name=VuOk buffer=" . bufnr("$") + exe ":sign place ".line('.')." line=".line('.')." name=VuUp buffer=" . bufnr("$") elseif 'uptodate' == status echo b.name.' already installed' - exe ":sign place ".line('.')." line=".line('.')." name=VuOk buffer=" . bufnr("$") + exe ":sign place ".line('.')." line=".line('.')." name=VuCu buffer=" . bufnr("$") elseif 'error' == status echohl Error echo 'Error installing "'.b.name diff --git a/autoload/vundle/scripts.vim b/autoload/vundle/scripts.vim index c08d543..a1c725f 100644 --- a/autoload/vundle/scripts.vim +++ b/autoload/vundle/scripts.vim @@ -32,9 +32,6 @@ func! vundle#scripts#setup_view() abort syn keyword vimCommand Bundle - sign define VuEr text=! texthl=Error - sign define VuOk text=* texthl=String - com! -buffer -bang -nargs=? InstallBundle call vundle#installer#install('!' == '', ) com! -buffer -nargs=0 VundleLog call s:view_log()