diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-01 16:10:32 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-01 16:10:32 +0900 |
commit | c4fd1f8913573854949e1aacc9d3a8fca908ca0d (patch) | |
tree | 7fa0d196d4cc5823153fb2922fdfd63fe04243cd | |
parent | d9a70c33d0e9c4a8cfc552648064c472b729329d (diff) | |
download | vim-sonictemplate-c4fd1f8913573854949e1aacc9d3a8fca908ca0d.tar.gz vim-sonictemplate-c4fd1f8913573854949e1aacc9d3a8fca908ca0d.tar.bz2 vim-sonictemplate-c4fd1f8913573854949e1aacc9d3a8fca908ca0d.zip |
Add plugin template
-rw-r--r-- | template/vim/base-plugin.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/template/vim/base-plugin.vim b/template/vim/base-plugin.vim new file mode 100644 index 0000000..e49b464 --- /dev/null +++ b/template/vim/base-plugin.vim @@ -0,0 +1,19 @@ +" {{_expr_:expand("%:p:t:r")}} +" Version: 0.0.1 +" Author: {{_expr_:get(g:,"sonictemplate_author","")}} +" License: {{_expr_:get(g:,"sonictemplate_license","")}} + +if exists('g:loaded_{{_expr_:expand("%:p:t:r")}}') + finish +endif +let g:loaded_{{_expr_:expand("%:p:t:r")}} = 1 + +let s:save_cpo = &cpo +set cpo&vim + +{{_cursor_}} + +let &cpo = s:save_cpo +unlet s:save_cpo + +" vim:set et: |