mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins and added vim-abolish
This commit is contained in:
@ -143,6 +143,13 @@ else {
|
||||
}
|
||||
endsnippet
|
||||
|
||||
# if inline error
|
||||
snippet ife "If with inline erro"
|
||||
if err := ${1:condition}; err != nil {
|
||||
${0:${VISUAL}}
|
||||
}
|
||||
endsnippet
|
||||
|
||||
# error snippet
|
||||
snippet errn "Error return " !b
|
||||
if err != nil {
|
||||
|
@ -118,6 +118,14 @@ snippet else
|
||||
else {
|
||||
${0}
|
||||
}
|
||||
|
||||
# if inline error
|
||||
snippet ife
|
||||
abbr if err := ...; err != nil { ... }
|
||||
if err := ${1:condition}; err != nil {
|
||||
${0}
|
||||
}
|
||||
|
||||
# error snippet
|
||||
snippet errn
|
||||
abbr if err != nil { ... }
|
||||
|
Reference in New Issue
Block a user