diff options
author | mattn <mattn.jp@gmail.com> | 2012-04-15 23:05:26 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-04-15 23:05:26 +0900 |
commit | 2328c985fcfeb67ae20c8d937b04e0f3254608c8 (patch) | |
tree | 1a4c90f4d1ac4ac29ac52c3696871a60ef4fed89 /doc | |
parent | 1f40c1ff7b2d85da0f54832b925a60149aa7f6d2 (diff) | |
download | vim-sonictemplate-2328c985fcfeb67ae20c8d937b04e0f3254608c8.tar.gz vim-sonictemplate-2328c985fcfeb67ae20c8d937b04e0f3254608c8.tar.bz2 vim-sonictemplate-2328c985fcfeb67ae20c8d937b04e0f3254608c8.zip |
user can override default template.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/sonictemplate-vim.txt | 14 |
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* |