fixed line expanding.

This commit is contained in:
mattn
2010-02-19 16:33:03 +09:00
parent d3cffec5f4
commit cb4f0d116e
2 changed files with 7 additions and 2 deletions

View File

@@ -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 '|'

View File

@@ -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: |