mirror of
https://github.com/mattn/emmet-vim.git
synced 2025-12-06 18:54:27 +08:00
fixed line expanding.
This commit is contained in:
@@ -945,7 +945,12 @@ function! s:zen_expand()
|
|||||||
let size = len(line) - len(part)
|
let size = len(line) - len(part)
|
||||||
let indent = repeat(s:zen_settings['indentation'], size)
|
let indent = repeat(s:zen_settings['indentation'], size)
|
||||||
let expand = indent . substitute(expand, "\n", "\n" . indent, 'g')
|
let expand = indent . substitute(expand, "\n", "\n" . indent, 'g')
|
||||||
call setline(line('.'), split(expand, '\n'))
|
let oldautoindent = &autoindent
|
||||||
|
let lines = split(expand, '\n')
|
||||||
|
call setline(line('.'), lines[0])
|
||||||
|
if len(lines) > 1
|
||||||
|
call append(line('.'), lines[1:])
|
||||||
|
endif
|
||||||
return ''
|
return ''
|
||||||
endif
|
endif
|
||||||
return '|'
|
return '|'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ script_id: '2981'
|
|||||||
script_type: utility
|
script_type: utility
|
||||||
script_package: zencoding.vim
|
script_package: zencoding.vim
|
||||||
script_version: '0.2'
|
script_version: '0.2'
|
||||||
required_vim_version: '7.2'
|
required_vim_version: '7.0'
|
||||||
summary: vim plugins for HTML and CSS hi-speed coding.
|
summary: vim plugins for HTML and CSS hi-speed coding.
|
||||||
|
|
||||||
detailed_description: |
|
detailed_description: |
|
||||||
|
|||||||
Reference in New Issue
Block a user