Browse Source

move signs to vundle.vim and use 3 states

- ! is error
- . is up-to-date
- * is updated
pull/73/head
gmarik 15 years ago
parent
commit
a3f1c1e537
3 changed files with 6 additions and 5 deletions
  1. +4
    -0
      autoload/vundle.vim
  2. +2
    -2
      autoload/vundle/installer.vim
  3. +0
    -3
      autoload/vundle/scripts.vim

+ 4
- 0
autoload/vundle.vim View File

@ -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')


+ 2
- 2
autoload/vundle/installer.vim View File

@ -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


+ 0
- 3
autoload/vundle/scripts.vim View File

@ -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('!' == '<bang>', <q-args>)
com! -buffer -nargs=0 VundleLog call s:view_log()


Loading…
Cancel
Save