mirror of
https://github.com/mattn/emmet-vim.git
synced 2026-10-24 21:47:21 +08:00
erase selected lines.
This commit is contained in:
1 parent
c1ea1e576b
commit
afabf9d4a0
1 file changed
+1
@@ -790,6 +790,7 @@ function! zencoding#expandAbbr(mode) range
|
|||||||
let expand = substitute(expand, '\n\s*$', '', 'g')
|
let expand = substitute(expand, '\n\s*$', '', 'g')
|
||||||
let expand = line[:-len(part)-1] . substitute(expand, "\n", "\n" . indent, 'g') . rest
|
let expand = line[:-len(part)-1] . substitute(expand, "\n", "\n" . indent, 'g') . rest
|
||||||
let lines = split(expand, '\n')
|
let lines = split(expand, '\n')
|
||||||
|
silent! exe "normal! gvc"
|
||||||
call setline(line('.'), lines[0])
|
call setline(line('.'), lines[0])
|
||||||
if len(lines) > 1
|
if len(lines) > 1
|
||||||
call append(line('.'), lines[1:])
|
call append(line('.'), lines[1:])
|
||||||
|
|||||||
Reference in new issue
Block a user