From aeb24b1922042272c2aab274fe0a169a49e6f935 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 10 Nov 2010 01:14:23 +0900 Subject: [PATCH] install mapping to global. --- plugin/zencoding.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/zencoding.vim b/plugin/zencoding.vim index 41a82cb..830c7a1 100644 --- a/plugin/zencoding.vim +++ b/plugin/zencoding.vim @@ -1,7 +1,7 @@ "============================================================================= " File: zencoding.vim " Author: Yasuhiro Matsumoto -" Last Change: 05-Nov-2010. +" Last Change: 10-Nov-2010. " Version: 0.47 " WebPage: http://github.com/mattn/zencoding-vim " Description: vim plugins for HTML and CSS hi-speed coding. @@ -87,7 +87,6 @@ if !exists('g:user_zen_leader_key') endif function! s:install_plugin() - let target = expand(':h') =~ '[\\/]plugin$' ? '' : '' for item in [ \ {'mode': 'i', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandAbbr', 'func': 'u:call zencoding#expandAbbr(0)a'}, \ {'mode': 'v', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandVisual', 'func': ':call zencoding#expandAbbr(2)'}, @@ -125,11 +124,12 @@ function! s:install_plugin() exe 'let g:' . item.var . " = '" . g:user_zen_leader_key . item.key . "'" endif if len(maparg(eval('g:' . item.var), item.mode)) == 0 - exe item.mode . 'map ' . target . ' ' . eval('g:' . item.var) . ' ' . item.plug + exe item.mode . 'map ' . eval('g:' . item.var) . ' ' . item.plug endif endfor endfunction call s:install_plugin() +delfunction s:install_plugin let &cpo = s:save_cpo unlet s:save_cpo