1. 安装 syntastic

参考 Make Vim as C/C++ IDE

2. 安装 golint

go get -u github.com/golang/lint/golint

3. 配置 syntastic

$ vim .vimrc
...
let g:syntastic_go_checkers = ['go', 'golint']
...

完成!

vim-golang-plugin