" go setttings filetype off filetype plugin indent off set runtimepath+=/usr/local/go/misc/vim au FileType go setlocal sw=4 ts=4 sts=4 noet au FileType go setlocal makeprg=go\ build\ ./... errorformat=%f:%l:\ %m au BufWritePre *.go Fmt filetype plugin indent on syntax on Goにはgofmtというソースコード整形ツールがあります。au FileType go setlocal sw=4 ts=4 sts=4 noetはgofmtに合わせてタブでインデントするための設定です。 au FileType go setlocal m