Misc fixes
This commit is contained in:
		
							parent
							
								
									2700dd8b23
								
							
						
					
					
						commit
						9e411368e0
					
				| @ -32,7 +32,7 @@ func! vundle#helptags() | |||||||
|   for bundle in g:bundles | call bundle.helptags() | endfor |   for bundle in g:bundles | call bundle.helptags() | endfor | ||||||
| endf | endf | ||||||
| 
 | 
 | ||||||
| func s:parse_options(opts) | func! s:parse_options(opts) | ||||||
|   " TODO: improve this |   " TODO: improve this | ||||||
|   if len(a:opts) != 1 | return {} | endif |   if len(a:opts) != 1 | return {} | endif | ||||||
|      |      | ||||||
| @ -57,15 +57,15 @@ endf | |||||||
| 
 | 
 | ||||||
| let s:bundle = {} | let s:bundle = {} | ||||||
| 
 | 
 | ||||||
| func s:bundle.path() | func! s:bundle.path() | ||||||
|   return expand(g:bundle_dir.''.self.name) |   return expand(g:bundle_dir.''.self.name) | ||||||
| endf | endf | ||||||
| 
 | 
 | ||||||
| func s:bundle.rtpath() | func! s:bundle.rtpath() | ||||||
|   return has_key(self, 'rtp') ? join([self.path(), self.rtp], '/') : self.path() |   return has_key(self, 'rtp') ? join([self.path(), self.rtp], '/') : self.path() | ||||||
| endf | endf | ||||||
| 
 | 
 | ||||||
| func s:bundle.require() | func! s:bundle.require() | ||||||
|   let dir = self.rtpath() |   let dir = self.rtpath() | ||||||
|   exec 'set rtp^='.dir |   exec 'set rtp^='.dir | ||||||
|   let after = expand(dir.'/after') | if isdirectory(after)  |   let after = expand(dir.'/after') | if isdirectory(after)  | ||||||
| @ -82,7 +82,7 @@ endf | |||||||
| 
 | 
 | ||||||
| func! s:bundle.sync()  | func! s:bundle.sync()  | ||||||
|   let git_dir = self.path().'/.git' |   let git_dir = self.path().'/.git' | ||||||
|   exec '!echo -ne "* '.self.name.'"' |   echo self.name | ||||||
|   if isdirectory(git_dir) |   if isdirectory(git_dir) | ||||||
|     silent exec '!cd '.self.path().'; git pull' |     silent exec '!cd '.self.path().'; git pull' | ||||||
|   else |   else | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user