From a28a0ed4e094153b87bec447410cbb03b2bde28d Mon Sep 17 00:00:00 2001 From: mattn Date: Mon, 22 Feb 2010 11:28:24 +0900 Subject: [PATCH] user key map. --- zencoding.vim | 12 +++++++++--- zencoding.vim.vimup | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/zencoding.vim b/zencoding.vim index 667088a..ee2d87a 100644 --- a/zencoding.vim +++ b/zencoding.vim @@ -2,7 +2,7 @@ " File: zencoding.vim " Author: Yasuhiro Matsumoto " Last Change: 22-Feb-2010. -" Version: 0.12 +" Version: 0.13 " 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/ @@ -1029,10 +1029,16 @@ endfunction inoremap ZenCodingExpandWord u:call zen_expand(1)a inoremap ZenCodingExpandAbbr u:call zen_expand(0)a -if !hasmapto('.') +if !exists('g:user_zen_expandword_key') + let g:user_zen_expandword_key = '.' +endif +if !hasmapto(g:user_zen_expandword_key) imap . ZenCodingExpandWord endif -if !hasmapto(',') +if !exists('g:user_zen_expandabbr_key') + let g:user_zen_expandabbr_key = ',' +endif +if !hasmapto(g:user_zen_expandabbr_key) imap , ZenCodingExpandAbbr endif diff --git a/zencoding.vim.vimup b/zencoding.vim.vimup index b79dc04..7b7d0e4 100644 --- a/zencoding.vim.vimup +++ b/zencoding.vim.vimup @@ -67,6 +67,8 @@ install_details: | copy zencoding.vim to your plugin directory. versions: +- '0.13': | + This is an upgrade for ZenCoding.vim: user key map. - '0.12': | This is an upgrade for ZenCoding.vim: few extensive notation. - '0.11': |