From 251f2b571dc5e1f4e5bf9bf5d17386988ad93a63 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 28 Oct 2011 19:42:31 +0900 Subject: updated. --- plugin/sonictemplate.vim | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'plugin') diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim index 5fe99bd..22d6ea4 100644 --- a/plugin/sonictemplate.vim +++ b/plugin/sonictemplate.vim @@ -1,15 +1,30 @@ "============================================================================= -" sonictemplate.vim +" File: sonictemplate.vim " Author: Yasuhiro Matsumoto " Last Change: 28-Oct-2011. -" -" Vim commands to load template. +" Version: 0.01 +" WebPage: http://github.com/mattn/sonictemplate-vim +" Description: Easy and high speed coding method +" Usage: " " :Template {name} " Load template named as {name} in the current buffer. +" +" Or type + t + +if &cp || (exists('g:loaded_sonictemplate_vim') && g:loaded_sonictemplate_vim) + finish +endif +let g:loaded_sonictemplate_vim = 1 + +let s:save_cpo = &cpo +set cpo&vim command! -nargs=1 -complete=customlist,sonictemplate#complete Template call sonictemplate#apply() nnoremap t :call sonictemplate#select() inoremap t :call sonictemplate#select() -" vim:ts=4:sw=4:et +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim:set et: -- cgit v1.2.3-54-g00ecf