mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 14:43:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -3,58 +3,22 @@ priority -50 | ||||
| ########################################################################### | ||||
| #                            SnipMate Snippets                            # | ||||
| ########################################################################### | ||||
| snippet header | ||||
| " File: ${1:`!v expand('%:t')`} | ||||
| " Author: ${2:`!v g:snips_author`} | ||||
| " Description: ${3} | ||||
| ${4:" Last Modified: `!v strftime("%B %d, %Y")`} | ||||
|  | ||||
| $0 | ||||
| endsnippet | ||||
|  | ||||
| snippet gvar "Global / configuration variable" | ||||
| snippet gvar "Global / configuration variable" b | ||||
| if !exists("g:${1:MyUltraImportantVar}") | ||||
| 	let g:$1 = ${2:"${3:<tab>}"} | ||||
| endif | ||||
| endsnippet | ||||
|  | ||||
| snippet guard | ||||
| snippet guard "script reload guard" b | ||||
| if exists('${1:did_`!p snip.rv = snip.fn.replace('.','_')`}') || &cp${2: || version < 700} | ||||
| 	finish | ||||
| endif | ||||
| let $1 = 1${3} | ||||
| endsnippet | ||||
|  | ||||
| snippet f | ||||
| snippet f "function" b | ||||
| fun ${1:function_name}(${2}) | ||||
| 	${3:" code} | ||||
| endf | ||||
| endsnippet | ||||
|  | ||||
| snippet for | ||||
| for ${1:needle} in ${2:haystack} | ||||
| 	${3:" code} | ||||
| endfor | ||||
| endsnippet | ||||
|  | ||||
| snippet wh | ||||
| while ${1:condition} | ||||
| 	${2:" code} | ||||
| endw | ||||
| endsnippet | ||||
|  | ||||
| snippet if | ||||
| if ${1:condition} | ||||
| 	${2:" code} | ||||
| endif | ||||
| endsnippet | ||||
|  | ||||
| snippet ife | ||||
| if ${1:condition} | ||||
| 	${2} | ||||
| else | ||||
| 	${3} | ||||
| endif | ||||
| endsnippet | ||||
|  | ||||
| # vim:ft=snippets: | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix