diff options
author | mattn <mattn.jp@gmail.com> | 2011-11-08 18:49:55 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-11-08 18:49:55 +0900 |
commit | d317c5f47c3837bb4ae1e2befd9b3d6de5977384 (patch) | |
tree | 659c25b69f34ed4181da6ffd8e1bea2336aefa42 /plugin | |
parent | d0c9e61ccf69fb6c3f7f2877d937c04887dae9d7 (diff) | |
download | vim-sonictemplate-d317c5f47c3837bb4ae1e2befd9b3d6de5977384.tar.gz vim-sonictemplate-d317c5f47c3837bb4ae1e2befd9b3d6de5977384.tar.bz2 vim-sonictemplate-d317c5f47c3837bb4ae1e2befd9b3d6de5977384.zip |
fixed indent, fixed key assign.
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/sonictemplate.vim | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim index 3a0f916..c8f320c 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: 02-Nov-2011. +" Last Change: 08-Nov-2011. " Version: 0.06 " WebPage: http://github.com/mattn/sonictemplate-vim " Description: Easy and high speed coding method @@ -21,8 +21,12 @@ 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 <space><bs><c-\><c-o>:call sonictemplate#select()<cr> + +nnoremap <plug>(sonictemplate) :call sonictemplate#select('n')<cr> +inoremap <plug>(sonictemplate) <space><bs><c-o>:call sonictemplate#select('i')<cr> + +nmap <unique> <c-y>t <plug>(sonictemplate) +imap <unique> <c-y>t <plug>(sonictemplate) let &cpo = s:save_cpo unlet s:save_cpo |