All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
3 int main(int argc, const char *argv[])
10 #include <${1:stdio}.h>${2}
13 #include "${1:`Filename("$1.h")`}"${2}
14 # #ifndef ... #define ... #endif
17 #define ${1:SYMBOL} ${2:value}
29 # Header Include-Guard
30 # (the randomizer code is taken directly from TextMate; it could probably be
31 # cleaner, I don't know how to do it in vim script)
33 #ifndef ${1:`toupper(Filename('', 'UNTITLED').'_'.system("/usr/bin/ruby -e 'print (rand * 2821109907455).round.to_s(36)'"))`}
39 #endif /* end of include guard: $1 */
42 if (${1:/* condition */}) {
49 # Tertiary conditional
51 ${1:/* condition */} ? ${2:a} : ${3:b}
56 } while (${1:/* condition */});
59 while (${1:/* condition */}) {
64 for (${2:i} = 0; $2 < ${1:count}; $2${3:++}) {
69 for (${1:i} = ${2:0}; ${3:$1 < 10}; $1${4:++}) {
74 ${1:void} ${2:function_name}(${3})
78 # Function Declaration
80 ${1:void} ${2:function_name}(${3});${4}
83 typedef ${1:int} ${2:MyCustomType};${3}
86 struct ${1:`Filename('$1_t', 'name')`} {
88 }${3: /* optional variable list */};${4}
91 typedef struct ${2:_$1 }{
93 } ${1:`Filename('$1_t', 'name')`};
100 # unfortunately version this isn't as nice as TextMates's, given the lack of a
103 printf("${1:%s}\n"${2});${3}
104 # fprintf (again, this isn't as nice as TextMate's version, but it works)
106 fprintf(${1:stderr}, "${2:%s}\n"${3});${4}