diff options
author | mattn <mattn.jp@gmail.com> | 2011-10-28 19:42:31 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-10-28 19:42:31 +0900 |
commit | 251f2b571dc5e1f4e5bf9bf5d17386988ad93a63 (patch) | |
tree | 1afcc27e9b164198561df2168b526fb65661a917 /plugin/sonictemplate.vim | |
parent | 8d555102311f2c7c8f827f1133e06da30c85d424 (diff) | |
download | vim-sonictemplate-251f2b571dc5e1f4e5bf9bf5d17386988ad93a63.tar.gz vim-sonictemplate-251f2b571dc5e1f4e5bf9bf5d17386988ad93a63.tar.bz2 vim-sonictemplate-251f2b571dc5e1f4e5bf9bf5d17386988ad93a63.zip |
updated.0.01
Diffstat (limited to 'plugin/sonictemplate.vim')
-rw-r--r-- | plugin/sonictemplate.vim | 23 |
1 files changed, 19 insertions, 4 deletions
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: |