Use 8-space-width tabs for go files
This commit is contained in:
parent
baed3af869
commit
4fa7bb9f5c
1 changed files with 2 additions and 0 deletions
2
vimrc
2
vimrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue