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

@ -40,7 +40,7 @@ snippet eif
}
# Conditional One-line
snippet xif
${1:expression} if ${2:condition};
$1 if $0;
# Unless conditional
snippet unless
unless (${1}) {
@ -48,7 +48,7 @@ snippet unless
}
# Unless conditional One-line
snippet xunless
${1:expression} unless ${2:condition};
$1 unless $0;
# Try/Except
snippet eval
local $@;
@ -65,7 +65,7 @@ snippet wh
}
# While Loop One-line
snippet xwh
${1:expression} while ${2:condition};
$1 while $0;
# C-style For Loop
snippet cfor
for (my $${2:var} = 0; $$2 < ${1:count}; $$2${3:++}) {
@ -73,7 +73,7 @@ snippet cfor
}
# For loop one-line
snippet xfor
${1:expression} for @${2:array};
$1 for @$0;
# Foreach Loop
snippet for
foreach my $${1:x} (@${2:array}) {
@ -81,7 +81,7 @@ snippet for
}
# Foreach Loop One-line
snippet fore
${1:expression} foreach @${2:array};
$1 foreach @$0;
# Package
snippet package
package ${1:`expand('%:p:s?.*lib/??:r:gs?/?::?')`};