From 251f2b571dc5e1f4e5bf9bf5d17386988ad93a63 Mon Sep 17 00:00:00 2001 From: mattn Date: Fri, 28 Oct 2011 19:42:31 +0900 Subject: updated. --- Makefile | 11 +++++++++++ plugin/sonictemplate.vim | 23 +++++++++++++++++++---- sonictemplate.vim.vimup | 4 ++-- 3 files changed, 32 insertions(+), 6 deletions(-) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..df9d88d --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +all : sonictemplate-vim.zip + +remove-zip: + -rm doc/tags + -rm sonictemplate-vim.zip + +sonictemplate-vim.zip: remove-zip + zip -r sonictemplate-vim.zip autoload plugin doc template + +release: sonictemplate-vim.zip + vimup update-script sonictemplate.vim 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: diff --git a/sonictemplate.vim.vimup b/sonictemplate.vim.vimup index ed1cd96..ee325be 100644 --- a/sonictemplate.vim.vimup +++ b/sonictemplate.vim.vimup @@ -1,8 +1,8 @@ script_name: SonicTemplate.vim -script_id: '2981' +script_id: '3790' script_type: utility script_package: sonictemplate-vim.zip -script_version: '0.55' +script_version: '0.01' required_vim_version: '7.0' summary: Easy and high speed coding method -- cgit v1.2.3-54-g00ecf