Use <nomodeline> on User autocmd if possible
http://ftp.vim.org/pub/vim/patches/7.3/7.3.442
This commit is contained in:
		
							parent
							
								
									bdc5c8d3cc
								
							
						
					
					
						commit
						82ac9d9075
					
				
							
								
								
									
										6
									
								
								plug.vim
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								plug.vim
									
									
									
									
									
								
							|  | @ -386,6 +386,10 @@ function! s:reorg_rtp() | ||||||
|   endif |   endif | ||||||
| endfunction | endfunction | ||||||
| 
 | 
 | ||||||
|  | function! s:doautocmd(...) | ||||||
|  |   execute 'doautocmd' ((v:version > 703 || has('patch442')) ? '<nomodeline>' : '') join(a:000) | ||||||
|  | endfunction | ||||||
|  | 
 | ||||||
| function! plug#load(...) | function! plug#load(...) | ||||||
|   if a:0 == 0 |   if a:0 == 0 | ||||||
|     return s:err('Argument missing: plugin name(s) required') |     return s:err('Argument missing: plugin name(s) required') | ||||||
|  | @ -440,7 +444,7 @@ function! s:lod(names, types, ...) | ||||||
|       call s:source(rtp, a:2) |       call s:source(rtp, a:2) | ||||||
|     endif |     endif | ||||||
|     if exists('#User#'.name) |     if exists('#User#'.name) | ||||||
|       execute 'doautocmd User' name |       call s:doautocmd('User', name) | ||||||
|     endif |     endif | ||||||
|   endfor |   endfor | ||||||
| endfunction | endfunction | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user