vimrc clean + snippets
[dotfiles.git] / .vim / mysnippets / cpp.snippets
index 8d5468c..11cd87f 100644 (file)
@@ -1,10 +1,10 @@
 snippet guard "header guard" w
-#ifndef $1
-#define $1
+#ifndef __$1_H__
+#define __$1_H__
 
 $0
 
-#endif // $1
+#endif // __$1_H__
 endsnippet
 
 snippet cpp "cpp extern" w
@@ -18,3 +18,13 @@ $0
 }
 #endif
 endsnippet
+
+snippet class "Class" w
+class $1
+{
+private:
+public:
+       $1();
+       ~$1();
+};
+endsnippet