aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-05-08 20:17:57 +0900
committermattn <mattn.jp@gmail.com>2013-05-08 20:17:57 +0900
commitd344e6389eccb0bfb3e4f00074f3815b627a5b52 (patch)
treebd6ab66deef031778fc5916554f48f17e3d1f2dd /plugin
parentc4fd1f8913573854949e1aacc9d3a8fca908ca0d (diff)
downloadvim-sonictemplate-d344e6389eccb0bfb3e4f00074f3815b627a5b52.tar.gz
vim-sonictemplate-d344e6389eccb0bfb3e4f00074f3815b627a5b52.tar.bz2
vim-sonictemplate-d344e6389eccb0bfb3e4f00074f3815b627a5b52.zip
Possible to rename command
Diffstat (limited to 'plugin')
-rw-r--r--plugin/sonictemplate.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim
index dd91430..8848b16 100644
--- a/plugin/sonictemplate.vim
+++ b/plugin/sonictemplate.vim
@@ -1,7 +1,7 @@
"=============================================================================
" File: sonictemplate.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
-" Last Change: 11-Jun-2012.
+" Last Change: 01-May-2013.
" Version: 0.10
" WebPage: http://github.com/mattn/sonictemplate-vim
" Description: Easy and high speed coding method
@@ -20,7 +20,7 @@ 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>, 'n')
+exe "command!" "-nargs=1" "-complete=customlist,sonictemplate#complete" get(g:, 'sonictemplate_commandname', 'Template') "call sonictemplate#apply(<f-args>, 'n')"
if get(g:, 'sonictemplate_key', '') == ''
nnoremap <plug>(sonictemplate) :call sonictemplate#select('n')<cr>