diff options
Diffstat (limited to 'vim/after/indent/html.vim')
-rw-r--r-- | vim/after/indent/html.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vim/after/indent/html.vim b/vim/after/indent/html.vim index a7a085fe..72c92d21 100644 --- a/vim/after/indent/html.vim +++ b/vim/after/indent/html.vim @@ -4,3 +4,12 @@ unlet html_indent_inctags " Don't re-indent lines on right-angle-bracket or enter setlocal indentkeys-=<>>,<Return> let b:undo_ftplugin .= '|setlocal indentkeys<' + +" Use four spaces for indentation +setlocal expandtab +setlocal shiftwidth=4 +let b:undo_ftplugin .= '|setlocal expandtab< shiftwidth<' +if &l:softtabstop != -1 + let &l:softtabstop = &l:shiftwidth + let b:undo_ftplugin .= '|setlocal softtabstop<' +endif |