Blackrush/vim-gocode — pull request #20 by sebnow (2014-01-18 05:49:41+00:00)
Title: Use tabs for formatting only based on expandtab setting

The 'smarttab' option does not affect whether tabs or spaces are used
for indentation, and thus should not be used to determine whether the
`-tabs` flag should be used.

The 'smarttab' option only determines whether a at the in front of
a line should align to the indentation level. From the documentation for
'smarttab':

What gets inserted (a or spaces) depends on the 'expandtab'
option.

If 'smarttab' is enabled but 'expandtab' is disabled, the 'Fmt' command will
not use tabs, which isn't the intended behaviour.