mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated all plugins that are non-forked. Added some new plugins.
Added update_plugins.py which can fetch new plugins from GitHub. New plugins added: zencoding, vim-indent-object, taglist, nginx.vim
This commit is contained in:
1
sources_non_forked/snipmate-snippets/zend/assert.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/assert.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->assertTrue(${1:somevar}, '${2:sometext}');
|
@ -0,0 +1 @@
|
||||
$this->hasColumn('${1:active}', '${2:boolean}', ${3:1}, array('default' => '${4:1}','notnull' => true));
|
20
sources_non_forked/snipmate-snippets/zend/clac.snippet
Normal file
20
sources_non_forked/snipmate-snippets/zend/clac.snippet
Normal file
@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* $1Controller
|
||||
* @package ${2}
|
||||
* @author ${3:`g:snips_author`}
|
||||
* @copyright (c) `strftime("%Y")`
|
||||
*/
|
||||
class ${1:Index}Controller extends Application_Controller
|
||||
{
|
||||
/**
|
||||
* indexAction
|
||||
*
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function indexAction(){
|
||||
${4:// some code}
|
||||
}
|
||||
}
|
1
sources_non_forked/snipmate-snippets/zend/flash.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/flash.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->_flashMessenger->addMessage("${1}", '${2:error}');
|
@ -0,0 +1 @@
|
||||
$${1:conf} = Zend_Registry::get('${2:config}')->${3:general};
|
4
sources_non_forked/snipmate-snippets/zend/input.snippet
Normal file
4
sources_non_forked/snipmate-snippets/zend/input.snippet
Normal file
@ -0,0 +1,4 @@
|
||||
<?= $this->formInput(array( 'type' => '${1:hidden}',
|
||||
'name' => '${2}',
|
||||
'value' => ${3:},
|
||||
'id' => '${4:}' )); ?>
|
@ -0,0 +1,6 @@
|
||||
<?= $this->formInput(array( 'type' => '${1:dropdown}',
|
||||
'name' => '${2}',
|
||||
'label' => '${3:}',
|
||||
'errors' => ${4:},
|
||||
'value' => ${5:},
|
||||
'valueList' => ${6:} )); ?>
|
1
sources_non_forked/snipmate-snippets/zend/intcol.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/intcol.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->hasColumn('${1:id}', '${2:integer}', ${3:11}, array(${4:'notnull' => true)});
|
5
sources_non_forked/snipmate-snippets/zend/lib.snippet
Normal file
5
sources_non_forked/snipmate-snippets/zend/lib.snippet
Normal file
@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
class Application_${1:Hellu}
|
||||
{${2}
|
||||
}
|
32
sources_non_forked/snipmate-snippets/zend/model.snippet
Normal file
32
sources_non_forked/snipmate-snippets/zend/model.snippet
Normal file
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
class ${1:Model} extends Doctrine_Record implements Zend_Auth_Adapter_Interface, Zend_Acl_Role_Interface
|
||||
{
|
||||
protected $searchconditions = array();
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
*
|
||||
* @var ${2:Model}
|
||||
*/
|
||||
protected static $_identity = null;
|
||||
|
||||
/**
|
||||
* Zend_Auth
|
||||
*
|
||||
* @var Zend_Auth
|
||||
*/
|
||||
protected static $_auth;
|
||||
|
||||
|
||||
/**
|
||||
* Doctrine
|
||||
*/
|
||||
public function setTableDefinition()
|
||||
{
|
||||
$this->hasColumn('id', 'integer', 4, array('notnull' => true,
|
||||
'primary' => true,
|
||||
'autoincrement' => true));
|
||||
${3}
|
||||
}
|
||||
|
||||
}
|
1
sources_non_forked/snipmate-snippets/zend/navi.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/navi.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->view->navigationActive = array('topnavi' => '${1:home}','subnavi' => '${2:index}');
|
1
sources_non_forked/snipmate-snippets/zend/route.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/route.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->_redirector->gotoRoute(array('controller' => '${1}', 'action' => '${2:index}', 'id' => '${3:}'), '${4:admin_action}');
|
2
sources_non_forked/snipmate-snippets/zend/rp.snippet
Normal file
2
sources_non_forked/snipmate-snippets/zend/rp.snippet
Normal file
@ -0,0 +1,2 @@
|
||||
<?=$this->partial('${1:somefile}.phtml',
|
||||
array(${2}))?>
|
1
sources_non_forked/snipmate-snippets/zend/strcol.snippet
Normal file
1
sources_non_forked/snipmate-snippets/zend/strcol.snippet
Normal file
@ -0,0 +1 @@
|
||||
$this->hasColumn('${1:title}', '${2:string}', ${3:255}, array(${4:'notnull' => true}));
|
Reference in New Issue
Block a user