mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-07 19:24:27 +08:00
change behaviour. now zencoding-vim expand abbreviation from LAST-WORD. close #18
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user