jnwhiteh/vim-golang — pull request #17 by eldilibra (2014-04-05 05:16:32+00:00)
Title: Allow for configuration of gofmt flags

Flags could be set in .vimrc for example, or simply during a session. I know it's rare to want to mess with gofmt's settings, but a recent project involved using spaces in place of tabs, and this small change helped. In my .vimrc, I've ```let g:gofmt_flags = "-tabwidth=4 -tabs=false"```.