vimrc clean + snippets
[dotfiles.git] / .vim / mysnippets / cpp.snippets
1 snippet guard "header guard" w
2 #ifndef __$1_H__
3 #define __$1_H__
4
5 $0
6
7 #endif // __$1_H__
8 endsnippet
9
10 snippet cpp "cpp extern" w
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14
15 $0
16
17 #ifdef __cplusplus
18 }
19 #endif
20 endsnippet
21
22 snippet class "Class" w
23 class $1
24 {
25 private:
26 public:
27         $1();
28         ~$1();
29 };
30 endsnippet