diff --git a/plugin/defaults.vim b/plugin/defaults.vim index 3e37473..333ed20 100644 --- a/plugin/defaults.vim +++ b/plugin/defaults.vim @@ -191,7 +191,7 @@ endif " HTML if !exists('g:formatdef_htmlbeautify') - let g:formatdef_htmlbeautify = '"html-beautify -f - -s ".shiftwidth()' + let g:formatdef_htmlbeautify = '"html-beautify -f - -".(&expandtab ? "s ".shiftwidth() : "t")' endif if !exists('g:formatdef_tidy_html')