mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Added and updated some plugins
Added: vim-ruby, typescript-vim, vim-javascript Updated: rust-vim
This commit is contained in:
		
							
								
								
									
										21
									
								
								sources_non_forked/vim-ruby/spec/vim/plugin/syntax_test.vim
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								sources_non_forked/vim-ruby/spec/vim/plugin/syntax_test.vim
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,21 @@ | ||||
|  | ||||
| let s:debug = 0 | ||||
|  | ||||
| function! s:CursorHasGroup(group) abort | ||||
|   return synIDattr(synID(line('.'), col('.'), 0), 'name') =~ a:group | ||||
| endfunction | ||||
|  | ||||
| function! TestSyntax(pattern, group) abort | ||||
|   let pattern = '\C' . a:pattern | ||||
|   call cursor(1, 1) | ||||
|   redraw | ||||
|   let start_match = search(pattern, 'c') && s:CursorHasGroup(a:group) | ||||
|   if s:debug | ||||
|     redraw | sleep 500m | ||||
|   endif | ||||
|   let end_match   = search(pattern, 'e') && s:CursorHasGroup(a:group) | ||||
|   if s:debug | ||||
|     redraw | sleep 500m | ||||
|   endif | ||||
|   return start_match && end_match | ||||
| endfunction | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic