summaryrefslogtreecommitdiffstats
path: root/vim/vimrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-17 13:53:43 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-17 13:53:43 +0000
commit39be46917b141e425db041b470626e9eed0ce4e7 (patch)
treec5453c8dea0a8406f0617505dfb2e4c16c51834f /vim/vimrc
parent741a0200906f1eddc94ea01fd4e096549940f56f (diff)
Tabs are 8 spaces in vim for Go files
Diffstat (limited to '')
-rw-r--r--vim/vimrc9
1 files changed, 9 insertions, 0 deletions
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()