This is a creation in Article, where the information may have evolved or changed.
2013-12-17 WCDJ
Previously summarized in SUBL using Golang, "Golang and Sublime Text 2 mac OS X 10.8.4 Development Environment Installation". In fact, Golang's installation package already contains a vim-enabled write plugin, the configuration method is very simple, as described below.
Go in Vim
The standard go distribution includes a go syntax file for Vim in go/misc/vim/ .
Installation Instructions
Place in and $GOROOT/misc/vim/syntax/go.vim ~/.vim/syntax/ put the following in ~/.vim/ftdetect/go.vim :
au BufRead,BufNewFile *.go set filetype=go
Extras and alternative Files
An alternative indent file for Vim by Alecs King can is found here.
Autocompletion
The Gocode daemon by NSF includes a VIM script to do autocompletion.
Other
See the Vim-golang repo on Github foralternative syntax highlight, auto-indentation, gofmt and other useful Scriptsand PLU Gins.
And this Reddit post for various ways to integrate with gofmt vim.
Reference:
[1] http://go-lang.cat-v.org/text-editors/vim/