Set shiftwidth=2 for HTML files

This commit is contained in:
Anthony Rose 2017-06-01 08:20:56 +01:00
parent a3ac24b8d9
commit 139800ba46

1
vimrc
View file

@ -100,6 +100,7 @@ endif
" Settings based on feature detection. " Settings based on feature detection.
if has("autocmd") if has("autocmd")
autocmd BufRead,BufNewFile *.html set shiftwidth=2
autocmd BufRead,BufNewFile *.md set filetype=markdown autocmd BufRead,BufNewFile *.md set filetype=markdown
autocmd BufRead,BufNewFile *.md set shiftwidth=2 autocmd BufRead,BufNewFile *.md set shiftwidth=2
autocmd BufRead,BufNewFile *.xml set shiftwidth=2 autocmd BufRead,BufNewFile *.xml set shiftwidth=2