diff options
-rw-r--r-- | Makefile | 11 | ||||
-rw-r--r-- | plugin/sonictemplate.vim | 23 | ||||
-rw-r--r-- | sonictemplate.vim.vimup | 4 |
3 files changed, 32 insertions, 6 deletions
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 <mattn.jp@gmail.com> " 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 <c-y> + 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(<f-args>) nnoremap <c-y>t :call sonictemplate#select()<cr> inoremap <c-y>t <esc>:call sonictemplate#select()<cr> -" 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 |