我该如何设置go-gb以在vim内部构建

Has anyone setup go-gb as your makeprg in vim? There is all sorts of documentation on configuration makeprg for compiling c code, but now much that I can find on configuring new commands.

Ideally i'd be able to run the :make command from vim and utilize errorformat on my builds.

set errorformat=%D(in\ %.%#)\ building\ pkg\ \"%f\",%f:%l:\ %m%.%#,%-G%.%#

In order to use gb as your makeprg in vim:

$ cd mygodir
$ vi main.go
#inside vi
# :set errorformat=%D(in\ %.%#)\ building\ pkg\ \"%f\",%f:%l:\ %m%.%#,%-G%.%#
#and then
# :set makeprg=gb
#now
#:mak
#will work as usual.