C: Move enum to snipmate, remove while dupe

This commit is contained in:
Louis Pilfold 2015-09-13 20:28:51 +01:00
parent bd213c19ce
commit a9d2af7470
2 changed files with 3 additions and 10 deletions

View File

@ -49,10 +49,6 @@ for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) {
} }
endsnippet endsnippet
snippet enum "Enumeration"
enum ${1:name} { $0 };
endsnippet
snippet once "Include header once only guard" snippet once "Include header once only guard"
#ifndef ${1:`!p #ifndef ${1:`!p
if not snip.c: if not snip.c:
@ -73,12 +69,6 @@ snippet td "Typedef"
typedef ${1:int} ${2:MyCustomType}; typedef ${1:int} ${2:MyCustomType};
endsnippet endsnippet
snippet wh "while loop"
while(${1:/* condition */}) {
${VISUAL}${0}
}
endsnippet
snippet do "do...while loop (do)" snippet do "do...while loop (do)"
do { do {
${VISUAL}${0} ${VISUAL}${0}

View File

@ -148,6 +148,9 @@ snippet tds
typedef struct ${2:_$1 }{ typedef struct ${2:_$1 }{
${3:/* data */} ${3:/* data */}
} ${1:`vim_snippets#Filename('$1_t', 'name')`}; } ${1:`vim_snippets#Filename('$1_t', 'name')`};
snippet enum
enum ${1:name} { ${0} };
# typedef enum # typedef enum
snippet tde snippet tde
typedef enum { typedef enum {