1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated vim plugins

This commit is contained in:
amix
2016-11-09 18:22:55 +01:00
parent aad95603ea
commit 1494e2edfa
81 changed files with 2756 additions and 470 deletions

View File

@ -18,7 +18,7 @@ snippet box "A nice box with the current comment symbol" b
box = make_box(len(t[1]))
snip.rv = box[0]
snip += box[1]
`${1:content}`!p
`${1:${VISUAL:content}}`!p
box = make_box(len(t[1]))
snip.rv = box[2]
snip += box[3]`
@ -32,7 +32,7 @@ if not snip.c:
box = make_box(len(t[1]), width)
snip.rv = box[0]
snip += box[1]
`${1:content}`!p
`${1:${VISUAL:content}}`!p
box = make_box(len(t[1]), width)
snip.rv = box[2]
snip += box[3]`

View File

@ -258,7 +258,7 @@ snippet style "XHTML <style>" w
endsnippet
snippet table "XHTML <table>" w
<table border="${1:0}"${2: cellspacing="${3:5}" cellpadding="${4:5}"}>
<table>
${0:${VISUAL}}
</table>
endsnippet
@ -317,4 +317,8 @@ snippet movie "Embed QT movie (movie)" b
`!p x(snip)`>
</object>
endsnippet
snippet viewport "Responsive viewport meta" w
<meta name="viewport" content="width=device-width, initial-scale=1">
endsnippet
# vim:ft=snippets:

View File

@ -158,14 +158,4 @@ snippet cw "console.warn" b
console.warn(${1:"${2:value}"});
endsnippet
# AMD (Asynchronous Module Definition) snippets
snippet def "define an AMD module"
define(${1:optional_name, }[${2:'jquery'}], ${3:callback});
endsnippet
snippet req "require an AMD module"
require([${1:'dependencies'}], ${2:callback});
endsnippet
# vim:ft=snippets:

View File

@ -121,9 +121,9 @@ class ${2:`!v expand('%:t:r')`} extends \Eloquent {
public $timestamps = ${5:false};
protected $hidden = array(${6});
protected $hidden = [${6}];
protected $guarded = array(${7:'id'});
protected $guarded = [${7:'id'}];
}
endsnippet
@ -162,7 +162,7 @@ abstract class ${2:`!v expand('%:t:r')`} implements ${3:BaseRepositoryInterface}
*
* \return Illuminate\Database\Eloquent\Collection
*/
public function all($columns = array('*')) {
public function all($columns = ['*']) {
return $this->model->all()->toArray();
}
@ -189,7 +189,7 @@ abstract class ${2:`!v expand('%:t:r')`} implements ${3:BaseRepositoryInterface}
*
* \return mixed
*/
public function find($id, $columns = array('*')) {
public function find($id, $columns = ['*']) {
return $this->model->find($id, $columns);
}
}

View File

@ -61,7 +61,7 @@ snippet sfa "Symfony 2 Controller action"
public function $1Action($2)
{
$3
return ${4:array();}$0
return ${4:[];}$0
}
endsnippet