aboutsummaryrefslogtreecommitdiff
path: root/template/c
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2011-10-28 09:42:05 +0900
committermattn <mattn.jp@gmail.com>2011-10-28 09:42:05 +0900
commit50270c6dd21fb071fdb19e37f8dc95f4d6dff616 (patch)
tree72bd93193a30943fa6db98cd94f9be54c160a0b8 /template/c
parent6bf642f27e160a9218fc839c22627e4c515efa15 (diff)
downloadvim-sonictemplate-50270c6dd21fb071fdb19e37f8dc95f4d6dff616.tar.gz
vim-sonictemplate-50270c6dd21fb071fdb19e37f8dc95f4d6dff616.tar.bz2
vim-sonictemplate-50270c6dd21fb071fdb19e37f8dc95f4d6dff616.zip
BIG CHANGE: changed directory structure.
Diffstat (limited to 'template/c')
-rw-r--r--template/c/base-main.c7
-rw-r--r--template/c/snip-comment-block.c3
-rw-r--r--template/c/snip-for.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/template/c/base-main.c b/template/c/base-main.c
new file mode 100644
index 0000000..794d581
--- /dev/null
+++ b/template/c/base-main.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+
+int
+main(int argc, char* argv[]) {
+ {{_cursor_}}
+ return 0;
+}
diff --git a/template/c/snip-comment-block.c b/template/c/snip-comment-block.c
new file mode 100644
index 0000000..5d93c0d
--- /dev/null
+++ b/template/c/snip-comment-block.c
@@ -0,0 +1,3 @@
+/**
+ * {{_cursor_}}
+ */
diff --git a/template/c/snip-for.c b/template/c/snip-for.c
new file mode 100644
index 0000000..210541e
--- /dev/null
+++ b/template/c/snip-for.c
@@ -0,0 +1,3 @@
+for (int n = 0; n < {{_input_:count}}; n++) {
+ {{_cursor_}}
+}