pinosaur
/
dotfiles.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vimrc clean + snippets
[dotfiles.git]
/
.vim
/
mysnippets
/
cpp.snippets
diff --git
a/.vim/mysnippets/cpp.snippets
b/.vim/mysnippets/cpp.snippets
index
8d5468c
..
11cd87f
100644
(file)
--- a/
.vim/mysnippets/cpp.snippets
+++ b/
.vim/mysnippets/cpp.snippets
@@
-1,10
+1,10
@@
snippet guard "header guard" w
snippet guard "header guard" w
-#ifndef
$1
-#define
$1
+#ifndef
__$1_H__
+#define
__$1_H__
$0
$0
-#endif //
$1
+#endif //
__$1_H__
endsnippet
snippet cpp "cpp extern" w
endsnippet
snippet cpp "cpp extern" w
@@
-18,3
+18,13
@@
$0
}
#endif
endsnippet
}
#endif
endsnippet
+
+snippet class "Class" w
+class $1
+{
+private:
+public:
+ $1();
+ ~$1();
+};
+endsnippet