aboutsummaryrefslogtreecommitdiff
path: root/plugin/sonictemplate.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/sonictemplate.vim')
-rw-r--r--plugin/sonictemplate.vim23
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: