aboutsummaryrefslogtreecommitdiff
path: root/vim/after/indent/html.vim
blob: 72c92d21f2a90e3bdb2f7b8282551b5797193f0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
" Clear away the flag we set to indent after paragraphs
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