diff --git a/zencoding.vim b/zencoding.vim index a692b38..f4310c6 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1,7 +1,7 @@ "============================================================================= " File: zencoding.vim " Author: Yasuhiro Matsumoto -" Last Change: 17-Mar-2010. +" Last Change: 23-Apr-2010. " Version: 0.36 " WebPage: http://github.com/mattn/zencoding-vim " Description: vim plugins for HTML and CSS hi-speed coding. @@ -79,7 +79,8 @@ if !exists('g:user_zen_leader_key') endif let s:target = expand(':h') =~ '[\\/]plugin$' ? '' : '' -for item in [ + +for s:item in [ \ {'mode': 'i', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandAbbr', 'func': 'u:call zen_expandAbbr(0)a'}, \ {'mode': 'i', 'var': 'user_zen_expandword_key', 'key': '.', 'plug': 'ZenCodingExpandWord', 'func': 'u:call zen_expandAbbr(1)a'}, \ {'mode': 'v', 'var': 'user_zen_expandabbr_key', 'key': ',', 'plug': 'ZenCodingExpandVisual', 'func': ':call zen_expandAbbr(2)'}, @@ -108,16 +109,18 @@ for item in [ \ {'mode': 'n', 'var': 'user_zen_anchorizesummary_key', 'key': 'A', 'plug': 'ZenCodingAnchorizeSummary', 'func': ':call zen_anchorizeURL(1)'}, \] - if !hasmapto(''.item.plug, item.mode) - exe item.mode . 'noremap ' . item.plug . ' ' . item.func + if !hasmapto(''.s:item.plug, s:item.mode) + exe s:item.mode . 'noremap ' . s:item.plug . ' ' . s:item.func endif - if !exists('g:' . item.var) - exe 'let g:' . item.var . " = '" . g:user_zen_leader_key . item.key . "'" + if !exists('g:' . s:item.var) + exe 'let g:' . s:item.var . " = '" . g:user_zen_leader_key . s:item.key . "'" endif - if !hasmapto(eval('g:' . item.var), item.mode) - exe item.mode . 'map ' . s:target . ' ' . eval('g:' . item.var) . ' ' . item.plug + if !hasmapto(eval('g:' . s:item.var), s:item.mode) + exe s:item.mode . 'map ' . s:target . ' ' . eval('g:' . s:item.var) . ' ' . s:item.plug endif endfor +unlet s:target +unlet s:item if exists('s:zen_settings') && g:zencoding_debug == 0 finish diff --git a/zencoding.vim.vimup b/zencoding.vim.vimup index ae83015..7781fe1 100644 --- a/zencoding.vim.vimup +++ b/zencoding.vim.vimup @@ -19,6 +19,12 @@ detailed_description: | This is vim script support expanding abbreviation like zen-coding. ref: http://code.google.com/p/zen-coding/ + + There is a movie using zencoding.vim + ref: http://mattn.github.com/zencoding-vim + + Source Repository. + ref: http://github.com/mattn/zencoding-vim Type abbreviation +-------------------------------------