fatih/vim-go — pull request #237 by alexaandru (2014-11-22 20:54:47+00:00)
Title: Added support for passing build flags to GoBuild

This is to address the https://github.com/fatih/vim-go/issues/231 feature request.

Works just fine for ```-gcflags=-m``` but for ```-gcflags=-s``` it only works if ```g:go_jump_to_error``` is set to 0. That is due to the "funny" output from that flag (on my end it generates absolute paths but prefixes them with ./ thus making them invalid - an attempt to jump at such an invalid file, will clear out the buffer).

Cheers!