title: Vim makeprg and errorformat for Go
body: <p>I would like to be able to build and run Go code from within vim with access to quickfix window if there are compilation errors.</p>
  
  <p>To achieve something close to this with Java I added the following to my .vimrc:</p>
  
  <pre><code>autocmd Filetype java set makeprg=ant\ -find\ build.xml
  autocmd Filetype java set efm=%A\ %#[javac]\ %f:%l:\ %m,%-Z\ %#[javac]\ %p^,%-C%.%#
  </code></pre>
  
  <p>I have the following currently for Go in my .vimrc:</p>
  
  <pre><code>autocmd Filetype go set makeprg=go\ run
  </code></pre>
  
  <p>What can I have to make <code>:make</code> (or <code>:make %</code>) act like it would for a good 'ol C program with pretty error reporting and output below the buffer?</p>