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

Updated plugins

This commit is contained in:
amix
2014-04-18 13:58:02 +01:00
parent ac3ef260c8
commit 6a16a9393c
91 changed files with 2554 additions and 708 deletions

View File

@ -120,19 +120,19 @@ endsnippet
snippet gs "PHP Class Getter Setter" b
/*
* Getter for ${1/(\w+)\s*;/$1/}
* Getter for $1
*/
public function get${1/(\w+)\s*;/\u$1/}()
public function get${1/\w+\s*/\u$0/}()
{
return $this->${1/(\w+)\s*;/$1/};$2
return $this->$1;$2
}
/*
* Setter for ${1/(\w+)\s*;/$1/}
* Setter for $1
*/
public function set${1/(\w+)\s*;/\u$1/}($${1/(\w+)\s*;/$1/})
public function set${1/\w+\s*/\u$0/}($$1)
{
$this->${1/(\w+)\s*;/$1/} = $${1/(\w+)\s*;/$1/};$3
$this->$1 = $$1;$3
${4:return $this;}
}
$0