From ad2048c5da8a224fe4eb9d7d65616a7a21f275a3 Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 22 Feb 2010 22:32:24 +0900 Subject: [PATCH] check whether key is mapping. --- zencoding.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 06f5dbd..a4bfbd5 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1040,10 +1040,10 @@ inoremap ZenCodingExpandAbbr u:call zen_expand(0)a if !exists('g:user_zen_expandword_key') let g:user_zen_expandword_key = '.' endif -if !hasmapto(g:user_zen_expandword_key) +if !hasmapto(g:user_zen_expandword_key, 'i') exe "imap " . g:user_zen_expandword_key . " ZenCodingExpandWord" endif -if !exists('g:user_zen_expandabbr_key') +if !exists('g:user_zen_expandabbr_key', 'i') let g:user_zen_expandabbr_key = ',' endif if !hasmapto(g:user_zen_expandabbr_key)