From 1e1f1e5d7eb108b2c81ff8b9de21fea1ff42049b Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 18 Jan 2025 18:24:19 +0000 Subject: Handle Go files in vimrc --- misc/dotfiles/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3-70-g09d2