move signs to vundle.vim and use 3 states
- ! is error - . is up-to-date - * is updated
This commit is contained in:
		
							parent
							
								
									b4e7ca5e55
								
							
						
					
					
						commit
						a3f1c1e537
					
				| @ -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') | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
| @ -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…
	
		Reference in New Issue
	
	Block a user