diff options
Diffstat (limited to 'misc/dotfiles/vimrc')
-rw-r--r-- | misc/dotfiles/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/misc/dotfiles/vimrc b/misc/dotfiles/vimrc index 5a31ae8..f37fe66 100644 --- a/misc/dotfiles/vimrc +++ b/misc/dotfiles/vimrc @@ -21,6 +21,12 @@ autocmd FileType c setlocal tabstop=8 autocmd FileType c setlocal softtabstop=8 autocmd FileType c setlocal shiftwidth=8 +" Same for Go files. +autocmd FileType go setlocal noexpandtab +autocmd FileType go setlocal tabstop=8 +autocmd FileType go setlocal softtabstop=8 +autocmd FileType go setlocal shiftwidth=8 + " In Makefiles, don't expand tabs to spaces, since we need the actual tabs. autocmd FileType make setlocal noexpandtab |