Skip to content
Browse files

c snippet: no size_t

  • Loading branch information...
1 parent e05669b commit 115f97bd87f650b1941759ea07bc3c3b3b938ade @quark-zju committed Apr 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 .vim/snippets/c.snippets
View
2 .vim/snippets/c.snippets
@@ -24,7 +24,7 @@ int main(int argc, char const *argv[]) {
endsnippet
snippet for "for int loop (fori)" !
-for (`!p snip.rv = 'int' if t[1].find('size()') < 0 else 'size_t'` ${2:i} = `!p snip.rv = '0' if t[2] != 'j' else 'i + 1'`; $2 < ${1:n}; ++$2) {
+for (int ${2:i} = `!p snip.rv = '0' if t[2] != 'j' else 'i + 1'`; $2 <`!p snip.rv = ' ' if t[1].find('size()') < 0 else ' (int)'`${1:n}; ++$2) {
${3}
}${0}
endsnippet

0 comments on commit 115f97b

Please sign in to comment.
Something went wrong with that request. Please try again.