X-Git-Url: https://git.danieliu.xyz/?p=dotfiles.git;a=blobdiff_plain;f=.vim%2Fmysnippets%2Fcpp.snippets;h=11cd87f6feb86e78ec0f86f0228ef5161d89400e;hp=8d5468c94d75c4464a9dd293c5b44ac95697e362;hb=HEAD;hpb=0853ad49fc13e10925e855a735bc3122612c3dcb diff --git a/.vim/mysnippets/cpp.snippets b/.vim/mysnippets/cpp.snippets index 8d5468c..11cd87f 100644 --- a/.vim/mysnippets/cpp.snippets +++ b/.vim/mysnippets/cpp.snippets @@ -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