diff --git a/zencoding.vim b/zencoding.vim index c041ca2..69d7197 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -1,8 +1,8 @@ "============================================================================= " File: zencoding.vim " Author: Yasuhiro Matsumoto -" Last Change: 06-Jul-2010. -" Version: 0.43 +" Last Change: 06-Sep-2010. +" Version: 0.44 " WebPage: http://github.com/mattn/zencoding-vim " Description: vim plugins for HTML and CSS hi-speed coding. " SeeAlso: http://code.google.com/p/zen-coding/ @@ -116,7 +116,7 @@ for s:item in [ 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:' . s:item.var), s:item.mode) + if len(maparg(eval('g:' . s:item.var), s:item.mode)) == 0 exe s:item.mode . 'map ' . s:target . ' ' . eval('g:' . s:item.var) . ' ' . s:item.plug endif endfor diff --git a/zencoding.vim.vimup b/zencoding.vim.vimup index 346846b..f34164f 100644 --- a/zencoding.vim.vimup +++ b/zencoding.vim.vimup @@ -2,7 +2,7 @@ script_name: ZenCoding.vim script_id: '2981' script_type: utility script_package: zencoding.vim -script_version: '0.43' +script_version: '0.44' required_vim_version: '7.0' summary: vim plugins for HTML and CSS hi-speed coding. @@ -95,6 +95,9 @@ install_details: | copy zencoding.vim to your plugin directory. versions: +- '0.44': | + This is an upgrade for ZenCoding.vim: + fixed checking whether have mapping using maparg() / hasmapto(). - '0.43': | This is an upgrade for ZenCoding.vim: fixed behavior for nested block. like "html:5>#page>(header#globalHeader>(hgroup>h1+h2)+(nav>ul>li*3>a)+(form>p.siteSearch>input+input[type=button]))+(#contents>(#main>(section>h2+p*5)+p.pagetop>a[href=#page])+(#sub>p+(nav>ul>li>a)))+(footer#globalFoooter>(ul>li>a)+(p.copyright>small))"