diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-01-18 18:24:19 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2025-01-18 18:24:19 +0000 |
commit | 1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b (patch) | |
tree | afa6396bc2c5d7465bf8bff10aa820980115c43d | |
parent | d30a200c879ab4ad2082720f92fe0d224ea844e7 (diff) | |
download | infra-1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b.tar.gz infra-1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b.tar.bz2 infra-1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b.zip |
Handle Go files in 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 |