1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Forgot to check in the rest of the updated plugins :/

This commit is contained in:
Amir
2022-09-20 10:08:31 +02:00
parent c6ba5aa440
commit 3978f7b467
77 changed files with 630 additions and 371 deletions

View File

@ -33,7 +33,7 @@ snippet eif
}
# Conditional One-line
snippet xif
${1:expression} if ${2:condition};
${1} if $2;
# Unless conditional
snippet unless
unless ${1} {
@ -41,14 +41,14 @@ snippet unless
}
# Unless conditional One-line
snippet xunless
${1:expression} unless ${2:condition};
${1} unless $2;
# Ternary conditional
snippet tc
${1:condition} ?? ${2:value-if-true} !! ${3:value-if-false};
$1 ?? ${2:value-if-true} !! ${3:value-if-false};
# given - when (perl6 switch)
snippet switch
given ${1:$var} {
when ${2:condition} {
when $2 {
${3:# code block ...}
}
${4}