From 39be46917b141e425db041b470626e9eed0ce4e7 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 17 Feb 2024 13:53:43 +0000 Subject: Tabs are 8 spaces in vim for Go files --- vim/vimrc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 5159ecb..3026729 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -354,6 +354,15 @@ augroup encrypted \ setlocal nobin augroup END " }}} +" Golang {{{ +augroup golang + autocmd! + au BufReadPre,BufReadPost *.go + \ set tabstop=8 | + \ set softtabstop=8 | + \ set shiftwidth=8 | +augroup END +" }}} " GitFZF {{{ " from https://git.sr.ht/~sircmpwn/dotfiles/tree/master/item/.vimrc function! GitFZF() -- cgit v1.2.3