Parcourir la source

add ifndef-snippet for cpp

Kevin Heinicke il y a 10 ans
Parent
commit
48301e121c
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. 7 0
      .vim/UltiSnips/cpp.snippets

+ 7 - 0
.vim/UltiSnips/cpp.snippets

@@ -11,3 +11,10 @@ endsnippet
 snippet cout
 std::cout << ${1} << std::endl;
 endsnippet
+
+snippet #ifndef
+#ifndef ${1:DEFINE}
+#define $1
+$0
+#endif // $1
+endsnippet