diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index c989464..8639df2 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -38,7 +38,7 @@ int main(int argc, char *argv[]) endsnippet snippet for "for loop (for)" -for (${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { +for (int ${1:i} = 0; $1 < ${2:count}; $1++) { ${VISUAL}${0} } endsnippet diff --git a/UltiSnips/java.snippets b/UltiSnips/java.snippets index 54d026d..65c762a 100644 --- a/UltiSnips/java.snippets +++ b/UltiSnips/java.snippets @@ -207,8 +207,8 @@ for (int ${1:i} = 0; $1 < ${2:10}; $1++)`!p nl(snip)`{ endsnippet snippet for "for" b -for ($1; $2; $3)`!p nl(snip)`{ - $0 +for (int ${1:i} = 0; $1 < ${2:count}; $1++)`!p nl(snip)`{ + ${VISUAL}${0} } endsnippet