mirror of
				https://github.com/amix/vimrc
				synced 2025-10-30 21:43:35 +08:00 
			
		
		
		
	Updated vim plugins. Nerd tree is on the right by default
This commit is contained in:
		| @ -29,7 +29,7 @@ def _parse_comments(s): | ||||
| 			if len(flags) == 0: | ||||
| 				rv.append((text, text, text, "")) | ||||
| 			# parse 3-part comment, but ignore those with O flag | ||||
| 			elif flags[0] == 's' and 'O' not in flags: | ||||
| 			elif 's' in flags and 'O' not in flags: | ||||
| 				ctriple = [] | ||||
| 				indent = "" | ||||
|  | ||||
| @ -47,7 +47,7 @@ def _parse_comments(s): | ||||
| 				ctriple.append(indent) | ||||
|  | ||||
| 				rv.append(ctriple) | ||||
| 			elif flags[0] == 'b': | ||||
| 			elif 'b' in flags: | ||||
| 				if len(text) == 1: | ||||
| 					rv.insert(0, (text,text,text, "")) | ||||
| 	except StopIteration: | ||||
|  | ||||
| @ -261,36 +261,56 @@ if (${1:/* condition */}) { | ||||
| $0 | ||||
| endsnippet | ||||
|  | ||||
| snippet ns "namespace declaration" b | ||||
| namespace ${1:`!p | ||||
| abspath = os.path.abspath(path) | ||||
| m = re.search(r'[A-Z].+(?=/)', abspath) | ||||
| if m: | ||||
| ›   snip.rv = m.group().replace('/', '\\') | ||||
| `}; | ||||
| endsnippet | ||||
|  | ||||
| snippet class "Class declaration template" b | ||||
| <?php | ||||
|  | ||||
| namespace ${1:`!p | ||||
| abspath = os.path.abspath(path) | ||||
| m = re.search(r'[A-Z].+(?=/)', abspath) | ||||
| if m: | ||||
| ›   snip.rv = m.group().replace('/', '\\') | ||||
| `}; | ||||
|  | ||||
| /** | ||||
|  * Class ${2:`!p snip.rv=snip.fn.split('.')[0]`} | ||||
|  * @author ${3:`!v g:snips_author`} | ||||
|  * Class ${1:`!p snip.rv=snip.basename`} | ||||
|  * @author ${2:`!v g:snips_author`} | ||||
|  */ | ||||
| $1class $2 | ||||
| class $1 | ||||
| { | ||||
| 	public function ${4:__construct}(${5:$options}) | ||||
| 	{ | ||||
| 		${6:// code} | ||||
| 	} | ||||
| } | ||||
| $0 | ||||
| endsnippet | ||||
|  | ||||
| snippet interface "interface declaration template" b | ||||
| snippet interface "Interface declaration template" b | ||||
| <?php | ||||
|  | ||||
| namespace ${1:`!p | ||||
| abspath = os.path.abspath(path) | ||||
| m = re.search(r'[A-Z].+(?=/)', abspath) | ||||
| if m: | ||||
| ›   snip.rv = m.group().replace('/', '\\') | ||||
| `}; | ||||
|  | ||||
| /** | ||||
|  * Interface ${1:`!p snip.rv=snip.fn.split('.')[0]`} | ||||
|  * Interface ${1:`!p snip.rv=snip.basename`} | ||||
|  * @author ${2:`!v g:snips_author`} | ||||
|  */ | ||||
| interface $1 | ||||
| { | ||||
| 	public function ${3:__construct}(${4:$options}) | ||||
| 	{ | ||||
| 		${5:// code} | ||||
| 	} | ||||
| ›   public function ${3:someFunction}();$4                                                                                                               | ||||
| } | ||||
| $0 | ||||
| endsnippet | ||||
|  | ||||
|  | ||||
| snippet construct "__construct()" b | ||||
| /** | ||||
|  * @param $2mixed ${1/, /\n     * \@param mixed /g} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix