aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/sonictemplate-vim.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/sonictemplate-vim.txt b/doc/sonictemplate-vim.txt
index 73ada2e..3efe061 100644
--- a/doc/sonictemplate-vim.txt
+++ b/doc/sonictemplate-vim.txt
@@ -117,6 +117,20 @@ You can modify template directory for your-self templates: >
\ '/path/to/another/template/directory'
\]
<
+You can override default template to make same structures. For example, a
+default C language template 'main' is like following.
+>
+ #include <stdio.h>
+
+ int
+ main(int argc, char* argv[]) {
+ {{_cursor_}}
+ return 0;
+ }
+
+This template is stored in 'sonictemplate-vim/template/c/base-main.c'.
+If you store base-main.c in another template directory that is specified
+|g:sonictemplate_vim_template_dir|, it will be overrided with your's one.
==============================================================================
WRITE YOUR TEMPLATE *sonictemplate-vim-writetemplate*