Skip to content

Category Archives: Go

Go and vim

The default vim go language syntax file uses a tabstop of 8, which is a bit excessive. Adding the following to ~/.vimrc makes the code nice and compact : ” Use a tabstop of 2 for go files autocmd FileType go setlocal shiftwidth=2 tabstop=2