From d344e6389eccb0bfb3e4f00074f3815b627a5b52 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 8 May 2013 20:17:57 +0900 Subject: Possible to rename command --- plugin/sonictemplate.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') 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 -" 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(, 'n') +exe "command!" "-nargs=1" "-complete=customlist,sonictemplate#complete" get(g:, 'sonictemplate_commandname', 'Template') "call sonictemplate#apply(, 'n')" if get(g:, 'sonictemplate_key', '') == '' nnoremap (sonictemplate) :call sonictemplate#select('n') -- cgit v1.2.3-54-g00ecf