Use shorter names for autocmd to avoid the right-hand edge

This commit is contained in:
Anthony Rose 2019-09-08 19:14:11 +01:00
parent 47e6ae3a5a
commit 3c6d824e52

12
vimrc
View file

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