From 2328c985fcfeb67ae20c8d937b04e0f3254608c8 Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 15 Apr 2012 23:05:26 +0900 Subject: user can override default template. --- doc/sonictemplate-vim.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') 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 + + 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* -- cgit v1.2.3-54-g00ecf