move signs to vundle.vim and use 3 states

- ! is error
- . is up-to-date
- * is updated
This commit is contained in:
gmarik 2011-08-04 16:33:30 -05:00
parent b4e7ca5e55
commit a3f1c1e537
3 changed files with 6 additions and 5 deletions

View File

@ -27,6 +27,10 @@ com! -nargs=? -bang BundleSearch
au Filetype vundle call vundle#scripts#setup_view() au Filetype vundle call vundle#scripts#setup_view()
au Syntax vim syn keyword vimCommand Bundle 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 func! vundle#rc(...) abort
let g:bundle_dir = len(a:000) > 0 ? expand(a:1) : expand('$HOME/.vim/bundle') let g:bundle_dir = len(a:000) > 0 ? expand(a:1) : expand('$HOME/.vim/bundle')

View File

@ -53,10 +53,10 @@ func! vundle#installer#install(bang, name) abort
if 'updated' == status if 'updated' == status
echo b.name.' installed' 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 elseif 'uptodate' == status
echo b.name.' already installed' 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 elseif 'error' == status
echohl Error echohl Error
echo 'Error installing "'.b.name echo 'Error installing "'.b.name

View File

@ -32,9 +32,6 @@ func! vundle#scripts#setup_view() abort
syn keyword vimCommand Bundle 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('!' == '<bang>', <q-args>) com! -buffer -bang -nargs=? InstallBundle call vundle#installer#install('!' == '<bang>', <q-args>)
com! -buffer -nargs=0 VundleLog call s:view_log() com! -buffer -nargs=0 VundleLog call s:view_log()