Tech and travel

Go and vim

2014-11-11

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

Copyright (c) 2024 Michel Hollands