From bd213c19ce822f0b7899afcc93b3c91d15304d95 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Fri, 11 Sep 2015 08:57:03 +0100 Subject: [PATCH] C: Add return, dedupe ultisnips --- UltiSnips/c.snippets | 8 -------- snippets/c.snippets | 2 ++ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/UltiSnips/c.snippets b/UltiSnips/c.snippets index 5c4299c..defea99 100644 --- a/UltiSnips/c.snippets +++ b/UltiSnips/c.snippets @@ -20,14 +20,6 @@ ${VISUAL}${0} #endif endsnippet -snippet inc "#include local header (inc)" -#include "${1:`!p snip.rv = snip.basename + '.h'`}" -endsnippet - -snippet Inc "#include <> (Inc)" -#include <${1:.h}> -endsnippet - snippet mark "#pragma mark (mark)" #if 0 ${1:#pragma mark - diff --git a/snippets/c.snippets b/snippets/c.snippets index 42bad7d..c1d95aa 100644 --- a/snippets/c.snippets +++ b/snippets/c.snippets @@ -98,6 +98,8 @@ snippet case case ${1:/* variable case */}: ${2} ${3:break;} +snippet ret + return ${0}; ## ## Loops # for