zsh : fori

This commit is contained in:
JuanPablo 2011-08-02 14:21:45 -04:00
parent 9d03e71712
commit 577e5a2a49

View File

@ -19,6 +19,10 @@ snippet for
for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do for (( ${2:i} = 0; $2 < ${1:count}; $2++ )); do
${3:# statements} ${3:# statements}
done done
snippet fori
for ${1:needle} in ${2:haystack} ; do
${3:#statements}
done
snippet fore snippet fore
for ${1:item} in ${2:list}; do for ${1:item} in ${2:list}; do
${3:# statements} ${3:# statements}