1
0
mirror of https://github.com/amix/vimrc synced 2025-07-05 15:35:01 +08:00

Revert "Merge from original repo"

This commit is contained in:
Jaeguk Hyun
2022-09-25 19:10:28 +09:00
committed by GitHub
parent 00c59fa5e1
commit 1d193551ef
122 changed files with 371 additions and 5171 deletions

View File

@ -62,8 +62,8 @@ snippet ife "if (condition) { ... } else { ... }"
${2}
}
# tertiary conditional
snippet ter Ternary: `condition ? true : false`
$1 ? $2: $0
snippet ter
${1:/* condition */} ? ${2:/* if true */} : ${0:/* if false */}
# switch
snippet switch
switch (${1:expression}) {
@ -107,17 +107,13 @@ snippet forr "reversed for (...) {...}"
${0:${VISUAL}}
}
snippet wh "(condition) { ... }"
while (${1:true}) {
${0:${VISUAL}}
}
snippet wht "(true) { ... }"
while (true) {
while (${1:/* condition */}) {
${0:${VISUAL}}
}
snippet do "do { ... } while (condition)"
do {
${0:${VISUAL}}
} while ($1);
} while (${1:/* condition */});
# For in loop
snippet fori
for (let ${1:prop} in ${2:object}) {