forked from VimPlug/emmet-vim
add indent spaces.
This commit is contained in:
@@ -324,7 +324,13 @@ function! zencoding#expandAbbr(mode, abbr) range
|
|||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
elseif a:mode == 4
|
elseif a:mode == 4
|
||||||
call setline('.', a:abbr)
|
let line = getline('.')
|
||||||
|
let spaces = matchstr(line, '^\s*')
|
||||||
|
if line !~ '^\s*$'
|
||||||
|
put =spaces.a:abbr
|
||||||
|
else
|
||||||
|
call setline('.', spaces.a:abbr)
|
||||||
|
endif
|
||||||
normal! $
|
normal! $
|
||||||
call zencoding#expandAbbr(0, "")
|
call zencoding#expandAbbr(0, "")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user