add indent spaces.

This commit is contained in:
mattn
2012-06-04 17:22:13 +09:00
parent 4dfd07003e
commit 7967655b9c

View File

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