From 74039bdbde65e5b0e32dca5db118f479da5ca942 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 1 Aug 2014 11:44:41 +0900 Subject: Update doc --- doc/sonictemplate-vim.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/doc/sonictemplate-vim.txt b/doc/sonictemplate-vim.txt index 19bfeed..957ff1c 100644 --- a/doc/sonictemplate-vim.txt +++ b/doc/sonictemplate-vim.txt @@ -134,7 +134,7 @@ 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. ============================================================================== -UNITE SOURCE *sonictemplate--vimunitesource* +UNITE SOURCE *sonictemplate-vim-unitesource* You can use unite source for sonictemplate. For example, > @@ -164,6 +164,8 @@ Note that I'm using pathogen-vim. base-script.pl ... base script snip-dbi-connect-sqlite.pl ... snippet for DBI/SQLite ... + clojure ... filetype clojure + file-project-base.clj ... file project base _ ... global template base-foo.go ... base foo snip-foo.go ... snip foo @@ -174,9 +176,12 @@ Note that I'm using pathogen-vim. |[kind]|-|[name]|.|[extension]| - |[kind]| 'base' or 'snip' should be used. + |[kind]| 'base' or 'snip' or 'file' should be used. 'base' is used when buffer is empty. + 'file' should be matched if buffer name is leading as template name. + For example, "initialize.c" should be expanded template files like + "file-initialize-qt.c" or "file-initialize-gtk.c". |[name]| template name -- cgit v1.2.3-54-g00ecf