mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 06:33:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -198,13 +198,13 @@ snippet dfun2 | ||||
| 	{ | ||||
| 		${12} | ||||
| 	} | ||||
| # function definition with two parameters | ||||
| # function definition with three parameters | ||||
| snippet fun3 | ||||
| 	${1:void} ${2:function_name}(${3:Type} ${4:Parameter}, ${5:Type} ${6:Parameter}, ${7:Type} ${8:Parameter}) | ||||
| 	{ | ||||
| 		${9} | ||||
| 	} | ||||
| # function definition with two parameters with  Doxygen documentation | ||||
| # function definition with three parameters with  Doxygen documentation | ||||
| snippet dfun3 | ||||
| 	/*! \brief ${1:Brief function description here} | ||||
| 	 * | ||||
|  | ||||
| @ -133,6 +133,11 @@ snippet fum | ||||
| 		${6} | ||||
| 	} | ||||
| 	${0} | ||||
| # http handler function on reciever | ||||
| snippet fumh | ||||
| 	func (${1:receiver} ${2:type}) ${3:funcName}(${4:w} http.ResponseWriter, ${5:r} *http.Request) { | ||||
| 		${0:${VISUAL}} | ||||
| 	} | ||||
| # log printf | ||||
| snippet lf | ||||
| 	log.Printf("%${1:s}", ${2:var}) | ||||
|  | ||||
| @ -50,27 +50,6 @@ snippet esc | ||||
| # comment | ||||
| snippet // | ||||
| 	<!-- ${1} -->${0} | ||||
| # Generic Doctype | ||||
| snippet doctype HTML 4.01 Strict | ||||
| 	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||||
| 	"http://www.w3.org/TR/html4/strict.dtd"> | ||||
| snippet doctype HTML 4.01 Transitional | ||||
| 	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||||
| 	"http://www.w3.org/TR/html4/loose.dtd"> | ||||
| snippet doctype HTML 5 | ||||
| 	<!DOCTYPE HTML> | ||||
| snippet doctype XHTML 1.0 Frameset | ||||
| 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||||
| 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||||
| snippet doctype XHTML 1.0 Strict | ||||
| 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||||
| 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||||
| snippet doctype XHTML 1.0 Transitional | ||||
| 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" | ||||
| 	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||||
| snippet doctype XHTML 1.1 | ||||
| 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" | ||||
| 	"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | ||||
| # HTML Doctype 4.01 Strict | ||||
| snippet docts | ||||
| 	<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | ||||
| @ -872,7 +851,9 @@ snippet ul+ | ||||
| snippet var | ||||
| 	<var>${0}</var> | ||||
| snippet video | ||||
| 	<video src="${1} height="${2}" width="${3}" preload="${5:none}" autoplay="${6:autoplay}>${7}</video> | ||||
| 	<video src="${1}" height="${2}" width="${3}" preload="${4:none}" autoplay="${5:autoplay}">${6}</video> | ||||
| snippet video. | ||||
| 	<video class="${1}" src="${2}" height="${3}" width="${4}" preload="${5:none}" autoplay="${6:autoplay}">${7}</video> | ||||
| snippet wbr | ||||
| 	<wbr /> | ||||
| snippet viewport | ||||
|  | ||||
| @ -1,5 +1,7 @@ | ||||
| snippet ir | ||||
| 	import React from 'react'; | ||||
| snippet irc | ||||
| 	import React, {Component} from 'react'; | ||||
| snippet ird | ||||
| 	import ReactDOM from 'react-dom'; | ||||
| snippet cdm | ||||
|  | ||||
| @ -10,7 +10,7 @@ snippet fun | ||||
| 		${0:${VISUAL}} | ||||
| 	} | ||||
| # Anonymous Function | ||||
| snippet f "" w | ||||
| snippet anf "" w | ||||
| 	function(${1}) { | ||||
| 		${0:${VISUAL}} | ||||
| 	} | ||||
|  | ||||
| @ -47,6 +47,14 @@ snippet cl | ||||
| 			${5:super($1, self).__init__()} | ||||
| 			self.$4 = $4 | ||||
| 			${0} | ||||
| snippet cla | ||||
| 	class ${1:class_name}: | ||||
| 		"""${0:description}""" | ||||
| snippet clai | ||||
| 	class ${1:class_name}: | ||||
| 		"""${2:description}""" | ||||
| 		def __init__(self, ${3:args}): | ||||
| 			${0} | ||||
| # New Function | ||||
| snippet def | ||||
| 	def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): | ||||
| @ -63,6 +71,9 @@ snippet adeff | ||||
| 	async def ${1:fname}(${2:`indent('.') ? 'self' : ''`}): | ||||
| 		${0} | ||||
| # New Method | ||||
| snippet defi | ||||
| 	def __init__(self, ${1:args}): | ||||
| 		${0} | ||||
| snippet defm | ||||
| 	def ${1:mname}(self, ${2:arg}): | ||||
| 		${0} | ||||
|  | ||||
| @ -5,17 +5,13 @@ snippet doc | ||||
| snippet let | ||||
| 	let ${1} = ${0}; | ||||
| snippet fn | ||||
| 	let ${1} => { | ||||
| 		${0} | ||||
| 	}; | ||||
| snippet fn0 | ||||
| 	let ${1} () => { | ||||
| 	let ${1} = (${2}) => { | ||||
| 		${0} | ||||
| 	}; | ||||
| snippet fun | ||||
| 	fun ${1} => ${0} | ||||
| snippet ty | ||||
| 	type ${1} = ${1}; | ||||
| 	type ${1} = ${0}; | ||||
| snippet mod | ||||
| 	module ${1} = { | ||||
| 		${0} | ||||
| @ -25,11 +21,13 @@ snippet modty | ||||
| 		${0} | ||||
| 	}; | ||||
| snippet sw | ||||
| 	switch ${1} { | ||||
| 	switch (${1}) { | ||||
| 	| ${2} => ${0} | ||||
| 	} | ||||
| snippet | | ||||
| 	| ${1} => ${0} | ||||
| snippet p | ||||
| 	|> ${0} | ||||
| snippet if | ||||
| 	if (${1}) { | ||||
| 		${2} | ||||
|  | ||||
| @ -688,6 +688,8 @@ snippet expb | ||||
| 	expect { ${1:object} }.to ${0} | ||||
| snippet experr | ||||
| 	expect { ${1:object} }.to raise_error ${2:StandardError}, /${0:message_regex}/ | ||||
| snippet allow | ||||
| 	allow(${1:object}).to ${0} | ||||
| snippet shared | ||||
| 	shared_examples ${0:'shared examples name'} | ||||
| snippet ibl | ||||
|  | ||||
| @ -191,3 +191,16 @@ snippet as "assert!" | ||||
| 	assert!(${1:predicate}); | ||||
| snippet ase "assert_eq!" | ||||
| 	assert_eq!(${1:expected}, ${2:actual}); | ||||
| # Implementations | ||||
| snippet asref "AsRef trait implementation" | ||||
| 	impl AsRef<${1:Ref}> for ${2:Type} { | ||||
| 		fn as_ref(&self) -> &${3:$1} { | ||||
| 			&self.${0:field} | ||||
| 		} | ||||
| 	} | ||||
| snippet asmut "AsMut trait implementation" | ||||
| 	impl AsMut<${1:Ref}> for ${2:Type} { | ||||
| 		fn as_mut(&mut self) -> &mut ${3:$1} { | ||||
| 			&mut self.${0:field} | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic