mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins
This commit is contained in:
@ -1,15 +1,15 @@
|
||||
snippet #!
|
||||
#!/usr/bin/env falcon
|
||||
|
||||
# Import
|
||||
# Import
|
||||
snippet imp
|
||||
import ${1:module}
|
||||
|
||||
# Function
|
||||
snippet fun
|
||||
function ${2:function_name}(${3})
|
||||
${4:/* code */}
|
||||
end
|
||||
function ${2:function_name}(${3})
|
||||
${4}
|
||||
end
|
||||
|
||||
# Class
|
||||
snippet class
|
||||
@ -17,35 +17,35 @@ snippet class
|
||||
${3:/* members/methods */}
|
||||
end
|
||||
|
||||
# If
|
||||
# If
|
||||
snippet if
|
||||
if ${1:condition}
|
||||
${2:/* code */}
|
||||
${2}
|
||||
end
|
||||
|
||||
# If else
|
||||
snippet ife
|
||||
if ${1:condition}
|
||||
${2:/* code */}
|
||||
${2}
|
||||
else
|
||||
${1}
|
||||
${1}
|
||||
end
|
||||
|
||||
# If else if
|
||||
snippet elif
|
||||
# If else if
|
||||
snippet eif
|
||||
elif ${1:condition}
|
||||
${2:/* code */}
|
||||
${2}
|
||||
|
||||
# Switch case
|
||||
snippet switch
|
||||
switch ${1:expression}
|
||||
case ${2:item}
|
||||
case ${3:item}
|
||||
default
|
||||
default
|
||||
end
|
||||
|
||||
# Select
|
||||
snippet select
|
||||
snippet select
|
||||
select ${1:variable}
|
||||
case ${2:TypeSpec}
|
||||
case ${3:TypeSpec}
|
||||
@ -55,17 +55,17 @@ snippet select
|
||||
# For/in Loop
|
||||
snippet forin
|
||||
for ${1:element} in ${2:container}
|
||||
${3:/* code */}
|
||||
${3}
|
||||
end
|
||||
|
||||
# For/to Loop
|
||||
snippet forto
|
||||
for ${1:lowerbound} to ${2:upperbound}
|
||||
${3:/* code */}
|
||||
${3}
|
||||
end
|
||||
|
||||
# While Loop
|
||||
snippet while
|
||||
snippet while
|
||||
while ${1:conidition}
|
||||
${2:/* code */}
|
||||
${2}
|
||||
end
|
||||
|
Reference in New Issue
Block a user