Use 8-space-width tabs for go files

This commit is contained in:
Anthony Rose 2017-11-22 13:57:01 +00:00
parent baed3af869
commit 4fa7bb9f5c

2
vimrc
View file

@ -101,6 +101,8 @@ endif
if has("autocmd") if has("autocmd")
autocmd BufRead,BufNewFile *.go set noexpandtab autocmd BufRead,BufNewFile *.go set noexpandtab
autocmd BufRead,BufNewFile *.go set shiftwidth=8
autocmd BufRead,BufNewFile *.go set tabstop=8
autocmd BufRead,BufNewFile *.html set shiftwidth=2 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