From a9d2af7470900aa50d4357f5107105b177e5cc13 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Sun, 13 Sep 2015 20:28:51 +0100 Subject: [PATCH] C: Move enum to snipmate, remove while dupe --- UltiSnips/c.snippets | 10 ---------- snippets/c.snippets | 3 +++ 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index defea99..7dd7cb9 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -49,10 +49,6 @@ for (${4:int} ${2:i} = 0; $2 < ${1:count}; ${3:++$2}) { } endsnippet -snippet enum "Enumeration" -enum ${1:name} { $0 }; -endsnippet - snippet once "Include header once only guard" #ifndef ${1:`!p if not snip.c: @@ -73,12 +69,6 @@ snippet td "Typedef" typedef ${1:int} ${2:MyCustomType}; endsnippet -snippet wh "while loop" -while(${1:/* condition */}) { - ${VISUAL}${0} -} -endsnippet - snippet do "do...while loop (do)" do { ${VISUAL}${0} diff --git a/snippets/c.snippets b/snippets/c.snippets index c1d95aa..6a1cbaa 100644 --- a/snippets/c.snippets +++ b/snippets/c.snippets @@ -148,6 +148,9 @@ snippet tds typedef struct ${2:_$1 }{ ${3:/* data */} } ${1:`vim_snippets#Filename('$1_t', 'name')`}; + +snippet enum + enum ${1:name} { ${0} }; # typedef enum snippet tde typedef enum {