Fix autocmd for new tab settings

This commit is contained in:
Anthony Rose 2019-08-05 11:10:28 +01:00
parent bce6d644ed
commit 6278c69c25

12
vimrc
View file

@ -113,12 +113,12 @@ endif
" Settings based on feature detection. " Settings based on feature detection.
if has("autocmd") if has("autocmd")
autocmd BufRead,BufNewFile *.go set shiftwidth=8 tabstop=8 autocmd BufRead,BufNewFile *.go set noexpandtab shiftwidth=8 tabstop=8
autocmd BufRead,BufNewFile *.html set shiftwidth=2 autocmd BufRead,BufNewFile *.html set expandtab shiftwidth=2
autocmd BufRead,BufNewFile *.md set filetype=markdown tabstop=4 autocmd BufRead,BufNewFile *.md set filetype=markdown shiftwidth=4
autocmd BufRead,BufNewFile *.opml set shiftwidth=2 autocmd BufRead,BufNewFile *.opml set expandtab shiftwidth=2
autocmd BufRead,BufNewFile *.xml set shiftwidth=2 autocmd BufRead,BufNewFile *.xml set expandtab shiftwidth=2
autocmd BufRead,BufNewFile *.yml set shiftwidth=2 autocmd BufRead,BufNewFile *.yml set expandtab shiftwidth=2
endif endif
if has("folding") if has("folding")