From 0bf28391b00b1e28c44324bcd7647df416314667 Mon Sep 17 00:00:00 2001 From: bnewbold Date: Thu, 25 Mar 2010 06:29:54 -0400 Subject: lots and lots of vim stuff for c development... --- .vim/c-support/templates/cpp.preprocessor.template | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .vim/c-support/templates/cpp.preprocessor.template (limited to '.vim/c-support/templates/cpp.preprocessor.template') diff --git a/.vim/c-support/templates/cpp.preprocessor.template b/.vim/c-support/templates/cpp.preprocessor.template new file mode 100644 index 0000000..68de87f --- /dev/null +++ b/.vim/c-support/templates/cpp.preprocessor.template @@ -0,0 +1,50 @@ +$------------------------------------------------------------------------- +== preprocessor.include-global == +#include <> +$------------------------------------------------------------------------- +== preprocessor.include-local == +#include "" +$------------------------------------------------------------------------- +== preprocessor.define == +#define // +$------------------------------------------------------------------------- +== preprocessor.undefine == +#undef // +$------------------------------------------------------------------------- +== preprocessor.if-else-endif == +#if |?CONDITION:u| + +#else // ----- not |CONDITION| ----- +<+ELSE PART+> + +#endif // ----- not |CONDITION| ----- +$------------------------------------------------------------------------- +== preprocessor.ifdef-else-endif == +#ifdef |?CONDITION:u| + +#else // ----- not |CONDITION| ----- +<+ELSE PART+> +#endif // ----- not |CONDITION| ----- +$------------------------------------------------------------------------- +== preprocessor.ifndef-else-endif == +#ifndef |?CONDITION:u| + +#else // ----- not |CONDITION| ----- +<+ELSE PART+> +#endif // ----- not |CONDITION| ----- +$------------------------------------------------------------------------- +== preprocessor.ifndef-def-endif == +#ifndef |?BASENAME:L|_INC +#define |BASENAME|_INC + +#endif // ----- #ifndef |BASENAME|_INC ----- +$------------------------------------------------------------------------- +== preprocessor.error == +#error "" // +$------------------------------------------------------------------------- +== preprocessor.line == +#line // +$------------------------------------------------------------------------- +== preprocessor.pragma == +#pragma // +$------------------------------------------------------------------------- -- cgit v1.2.3