change behaviour. now zencoding-vim expand abbreviation from LAST-WORD. close #18

This commit is contained in:
mattn
2012-05-21 17:45:04 +09:00
parent e1015e8470
commit 9c042e6907

View File

@@ -1,7 +1,7 @@
"============================================================================= "=============================================================================
" zencoding.vim " zencoding.vim
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com> " Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
" Last Change: 07-May-2012. " Last Change: 21-May-2012.
let s:save_cpo = &cpo let s:save_cpo = &cpo
set cpo&vim set cpo&vim
@@ -764,6 +764,7 @@ function! zencoding#expandAbbr(mode) range
while part =~ '<.\{-}>' while part =~ '<.\{-}>'
let part = substitute(part, '^.*<.\{-}>', '', '') let part = substitute(part, '^.*<.\{-}>', '', '')
endwhile endwhile
let part = substitute(part, '^.*\s', '', '')
elseif s:zen_isExtends(type, "css") elseif s:zen_isExtends(type, "css")
let part = substitute(part, '^.*[;{]\s*', '', '') let part = substitute(part, '^.*[;{]\s*', '', '')
endif endif