diff options
author | sgur <sgurrr@gmail.com> | 2016-07-04 12:26:02 +0900 |
---|---|---|
committer | sgur <sgurrr@gmail.com> | 2016-07-04 12:26:02 +0900 |
commit | d403969037180cb5405ff2f01bf53063452164f4 (patch) | |
tree | 07e2c987f334b5aeeb64583d5bdbdadbd494e78f | |
parent | 5703485cb8bab2d6c77c211ffa393a61b9725846 (diff) | |
download | vim-sonictemplate-d403969037180cb5405ff2f01bf53063452164f4.tar.gz vim-sonictemplate-d403969037180cb5405ff2f01bf53063452164f4.tar.bz2 vim-sonictemplate-d403969037180cb5405ff2f01bf53063452164f4.zip |
Fix map commands
-rw-r--r-- | plugin/sonictemplate.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugin/sonictemplate.vim b/plugin/sonictemplate.vim index 6c8a6fa..311c3ae 100644 --- a/plugin/sonictemplate.vim +++ b/plugin/sonictemplate.vim @@ -31,8 +31,8 @@ if get(g:, 'sonictemplate_key', '') == '' nmap <unique> <c-y><c-t> <plug>(sonictemplate) imap <unique> <c-y><c-t> <plug>(sonictemplate) else - exe "nnoremap" g:sonictemplate_key "<plug>(sonictemplate)" - exe "inoremap" g:sonictemplate_key "<plug>(sonictemplate)" + exe "nmap" g:sonictemplate_key "<plug>(sonictemplate)" + exe "imap" g:sonictemplate_key "<plug>(sonictemplate)" endif nnoremap <plug>(sonictemplate-intelligent) :call sonictemplate#select_intelligent('n')<cr> @@ -41,15 +41,15 @@ if get(g:, 'sonictemplate_intelligent_key', '') == '' nmap <unique> <c-y>T <plug>(sonictemplate-intelligent) imap <unique> <c-y>T <plug>(sonictemplate-intelligent) else - exe "nnoremap" g:sonictemplate_intelligent_key "<plug>(sonictemplate-intelligent)" - exe "inoremap" g:sonictemplate_intelligent_key "<plug>(sonictemplate-intelligent)" + exe "nmap" g:sonictemplate_intelligent_key "<plug>(sonictemplate-intelligent)" + exe "imap" g:sonictemplate_intelligent_key "<plug>(sonictemplate-intelligent)" endif inoremap <plug>(sonictemplate-postfix) <c-r>=sonictemplate#postfix()<cr> if get(g:, 'sonictemplate_postfix_key', '') == '' imap <unique> <c-y><c-b> <plug>(sonictemplate-postfix) else - exe "inoremap" g:sonictemplate_postfix_key "<plug>(sonictemplate-postfix)" + exe "imap" g:sonictemplate_postfix_key "<plug>(sonictemplate-postfix)" endif let &cpo = s:save_cpo |