mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -1,22 +1,26 @@
|
||||
# Prototype
|
||||
# prototype
|
||||
snippet proto
|
||||
${1:class_name}.prototype.${2:method_name} =
|
||||
function(${3:first_argument}) {
|
||||
${0:// body...}
|
||||
${1:class_name}.prototype.${2:method_name} = function(${3}) {
|
||||
${0}
|
||||
};
|
||||
# Function
|
||||
snippet fun
|
||||
function ${1:function_name}(${2:argument}) {
|
||||
${0:// body...}
|
||||
function ${1:function_name}(${2}) {
|
||||
${0}
|
||||
}
|
||||
# Anonymous Function
|
||||
snippet f
|
||||
function (${1}) {
|
||||
function(${1}) {
|
||||
${0}
|
||||
}
|
||||
# Function assigned to variable
|
||||
snippet vf
|
||||
var ${1:function_name} = function $1(${2}) {
|
||||
${0}
|
||||
};
|
||||
# Immediate function
|
||||
snippet (f
|
||||
(function (${1}) {
|
||||
(function(${1}) {
|
||||
${0}
|
||||
}(${2}));
|
||||
# if
|
||||
|
Reference in New Issue
Block a user