mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 06:33:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -91,9 +91,11 @@ let g:snipMate['get_snippets'] = get(g:snipMate, 'get_snippets', funcref#Functio | ||||
|  | ||||
| " List of paths where snippets/ dirs are located, or a function returning such | ||||
| " a list | ||||
| let g:snipMate['snippet_dirs'] = get(g:snipMate, 'snippet_dirs', funcref#Function('return split(&runtimepath,",")')) | ||||
| if type(g:snipMate['snippet_dirs']) == type([]) | ||||
| 	call map(g:snipMate['snippet_dirs'], 'expand(v:val)') | ||||
| let g:snipMate['snippet_dirs'] = get(g:snipMate, 'snippet_dirs', split(&rtp, ',')) | ||||
| if type(g:snipMate['snippet_dirs']) != type([]) | ||||
| 	echohl WarningMsg | ||||
| 	echom "g:snipMate['snippet_dirs'] must be a List" | ||||
| 	echohl None | ||||
| endif | ||||
|  | ||||
| " _ is default scope added always | ||||
| @ -107,7 +109,7 @@ function! s:grab_visual() | ||||
| 	let a_save = @a | ||||
| 	try | ||||
| 		normal! gv"ay | ||||
| 		let b:snipmate_content_visual = @a | ||||
| 		let b:snipmate_visual = @a | ||||
| 	finally | ||||
| 		let @a = a_save | ||||
| 	endtry | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix