From 0aaeea605731cc4ff69addf9f1295d54c512783b Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 27 Oct 2011 19:58:09 +0900 Subject: be possible to change template directory. --- plugin/template.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/template.vim b/plugin/template.vim index f200e74..8bd3a4f 100644 --- a/plugin/template.vim +++ b/plugin/template.vim @@ -20,7 +20,11 @@ command! -nargs=1 -complete=customlist,TemplateComplete Template call s:Template() -let s:tmpldir = expand(':p:h:h') . '/template/' +if exists('g:template_vim_template_dir') + let s:tmpldir = g:template_vim_template_dir +else + let s:tmpldir = expand(':p:h:h') . '/template/' +endif function! TemplateComplete(lead, cmdline, curpos) return map(split(globpath(s:tmpldir, a:lead.'*.'.&ft), "\n"), 'fnamemodify(v:val, ":t:r")') -- cgit v1.2.3-54-g00ecf