pinosaur
/
dotfiles.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update (mpd-change fix)
[dotfiles.git]
/
.vim
/
mysnippets
/
cpp.snippets
diff --git a/.vim/mysnippets/cpp.snippets
b/.vim/mysnippets/cpp.snippets
new file mode 100644
(file)
index 0000000..
8d5468c
--- /dev/null
+++ b/
.vim/mysnippets/cpp.snippets
@@ -0,0
+1,20
@@
+snippet guard "header guard" w
+#ifndef $1
+#define $1
+
+$0
+
+#endif // $1
+endsnippet
+
+snippet cpp "cpp extern" w
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+$0
+
+#ifdef __cplusplus
+}
+#endif
+endsnippet