From 8acb5310eb716c639686cc92d222aa3e46a51fdc Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 12 Apr 2012 03:23:26 +0900 Subject: avoid to un-display on linux. don't use plug map. --- plugin/sonictemplate.vim | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'plugin') diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim index fcc4190..4bba402 100644 --- a/plugin/sonictemplate.vim +++ b/plugin/sonictemplate.vim @@ -1,7 +1,7 @@ "============================================================================= " File: sonictemplate.vim " Author: Yasuhiro Matsumoto -" Last Change: 08-Nov-2011. +" Last Change: 12-Apr-2012. " Version: 0.08 " WebPage: http://github.com/mattn/sonictemplate-vim " Description: Easy and high speed coding method @@ -22,11 +22,16 @@ set cpo&vim command! -nargs=1 -complete=customlist,sonictemplate#complete Template call sonictemplate#apply(, 'n') -nnoremap (sonictemplate) :call sonictemplate#select('n') -inoremap (sonictemplate) :call sonictemplate#select('i') +if get(g:, 'sonictemplate_key', '') == '' + nnoremap (sonictemplate) :call sonictemplate#select('n') + inoremap (sonictemplate) :call sonictemplate#select('i') -nmap t (sonictemplate) -imap t (sonictemplate) + nmap t (sonictemplate) + imap t (sonictemplate) +else + exe "nnoremap" g:sonictemplate_key ":call sonictemplate#select('n')" + exe "inoremap" g:sonictemplate_key ":call sonictemplate#select('i')" +endif let &cpo = s:save_cpo unlet s:save_cpo -- cgit v1.2.3-54-g00ecf