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
2017-02-11 14:01:38 +01:00
parent a6de243fca
commit fe46dfbbe6
141 changed files with 2790 additions and 1630 deletions

View File

@ -30,7 +30,7 @@ snippet ch
# case
snippet cs
case ${1:value}:
${0}
${0:${VISUAL}}
# const
snippet c
const ${1:NAME} = ${0:0}
@ -50,7 +50,7 @@ snippet df
snippet dfr
defer func() {
if err := recover(); err != nil {
${0}
${0:${VISUAL}}
}
}()
# int
@ -72,18 +72,18 @@ snippet inf
# if condition
snippet if
if ${1:/* condition */} {
${2}
${2:${VISUAL}}
}
snippet ife
if ${1:/* condition */} {
${2}
${2:${VISUAL}}
} else {
${0}
}
# else snippet
snippet el
else {
${1}
${0:${VISUAL}}
}
# error snippet
snippet ir
@ -106,28 +106,20 @@ snippet f3
# float64
snippet f6
float64
# if else
snippet ie
if ${1:/* condition */} {
${2}
} else {
${3}
}
${0}
# for int loop
snippet for
for ${1}{
${0}
${0:${VISUAL}}
}
# for int loop
snippet fori
for ${2:i} := 0; $2 < ${1:count}; $2${3:++} {
${0}
${0:${VISUAL}}
}
# for range loop
snippet forr
for ${1:e} := range ${2:collection} {
${0}
${0:${VISUAL}}
}
# function simple
snippet fun
@ -225,9 +217,8 @@ snippet ga
}(${0})
snippet test test function
func Test${1:name}(t *testing.T) {
${2}
${0:${VISUAL}}
}
${0}
snippet bench benchmark function
func Benchmark${1:name}(b *testing.B) {
for i := 0; i < b.N; i++ {