1
0
mirror of https://github.com/amix/vimrc synced 2025-07-19 18:14:59 +08:00
This commit is contained in:
huangqundl
2017-03-17 23:12:53 +08:00
parent 47b213d974
commit cba39b7326
855 changed files with 59981 additions and 35298 deletions

View File

@ -7,30 +7,30 @@
#if
snippet if
if (${1})
${0}
${0:${VISUAL}}
#if not
snippet ifn
if (!${1})
${0}
${0:${VISUAL}}
#if-else
snippet ife
if (${1})
${2}
${2:${VISUAL}}
else
${0}
#if-else-if
snippet ifelif
if (${1})
${2}
${2:${VISUAL}}
else if (${3})
${0}
${0:${VISUAL}}
snippet eif
else if (${3})
${0}
${0:${VISUAL}}
#while loop
snippet wh
while (${1:obj}) {
${0}
${0:${VISUAL}}
}
#for loop(classic)
snippet for
@ -50,7 +50,7 @@ snippet fory
#exceptions
snippet try
try {
${1}
${1:${VISUAL}}
} catch {
case e: FileNotFoundException => ${2}
case e: IOException => ${3}
@ -298,19 +298,25 @@ snippet scalatest
${0:import org.scalatest.FunSuite}
#assert
snippet assert
assert(${1:a}==${0:b})
assert(${1:a} === ${0:b})
#ensuring(p 296)
snippet ensuring
ifel ensuring(${1:a}==${0:b})
#expect
snippet expect
expect(${0:what}) {
expect(${1:what}) {
${0}
}
#intercept
snippet intercept
intercept[${0:IllegalArgumentException}] {
intercept[${1:IllegalArgumentException}] {
${0}
}
#test
snippet test
test("${0:description}") {
test("${1:description}") {
${0}
}
#suite
snippet suite
class ${0:name} extends Suite {