mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -16,7 +16,7 @@ endsnippet | ||||
|  | ||||
| snippet #if "#if #endif" b | ||||
| #if ${1:0} | ||||
| ${VISUAL}${0:${VISUAL/(.*)/(?1::code)/}} | ||||
| ${VISUAL}${0} | ||||
| #endif | ||||
| endsnippet | ||||
|  | ||||
| @ -40,7 +40,7 @@ endsnippet | ||||
| snippet main "main() (main)" | ||||
| int main(int argc, char *argv[]) | ||||
| { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| 	return 0; | ||||
| } | ||||
| endsnippet | ||||
| @ -48,14 +48,14 @@ endsnippet | ||||
| snippet for "for loop (for)" | ||||
| for (${2:i} = 0; $2 < ${1:count}; ${3:++$2}) | ||||
| { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| snippet fori "for int loop (fori)" | ||||
| for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) | ||||
| { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| @ -74,7 +74,7 @@ else: | ||||
| 	snip.rv = snip.c`} | ||||
| #define $1 | ||||
|  | ||||
| ${0} | ||||
| ${VISUAL}${0} | ||||
|  | ||||
| #endif /* end of include guard: $1 */ | ||||
|  | ||||
| @ -86,13 +86,13 @@ endsnippet | ||||
|  | ||||
| snippet wh "while loop" | ||||
| while(${1:/* condition */}) { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| snippet do "do...while loop (do)" | ||||
| do { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } while(${1:/* condition */}); | ||||
| endsnippet | ||||
|  | ||||
| @ -103,26 +103,26 @@ endsnippet | ||||
| snippet if "if .. (if)" | ||||
| if (${1:/* condition */}) | ||||
| { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| snippet el "else .. (else)" | ||||
| else { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| snippet eli "else if .. (eli)" | ||||
| else if (${1:/* condition */}) { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
| snippet ife "if .. else (ife)" | ||||
| if (${1:/* condition */}) | ||||
| { | ||||
| 	${2:/* code */} | ||||
| 	${2} | ||||
| } | ||||
| else | ||||
| { | ||||
| @ -144,7 +144,7 @@ endsnippet | ||||
| snippet fun "function" b | ||||
| ${1:void} ${2:function_name}(${3}) | ||||
| { | ||||
| 	${VISUAL}${0:${VISUAL/(.*)/(?1::\/* code *\/)/}} | ||||
| 	${VISUAL}${0} | ||||
| } | ||||
| endsnippet | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix