{"action":"created","issue":{"url":"https://api.github.com/repos/fatih/vim-go/issues/474","labels_url":"https://api.github.com/repos/fatih/vim-go/issues/474/labels{/name}","comments_url":"https://api.github.com/repos/fatih/vim-go/issues/474/comments","events_url":"https://api.github.com/repos/fatih/vim-go/issues/474/events","html_url":"https://github.com/fatih/vim-go/issues/474","id":92931136,"number":474,"title":"setting go_fmt_command=\"goimports\" doesn't seem to work","user":{"login":"gregf","id":980,"avatar_url":"https://avatars.githubusercontent.com/u/980?v=3","gravatar_id":"","url":"https://api.github.com/users/gregf","html_url":"https://github.com/gregf","followers_url":"https://api.github.com/users/gregf/followers","following_url":"https://api.github.com/users/gregf/following{/other_user}","gists_url":"https://api.github.com/users/gregf/gists{/gist_id}","starred_url":"https://api.github.com/users/gregf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregf/subscriptions","organizations_url":"https://api.github.com/users/gregf/orgs","repos_url":"https://api.github.com/users/gregf/repos","events_url":"https://api.github.com/users/gregf/events{/privacy}","received_events_url":"https://api.github.com/users/gregf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-03T20:17:24Z","updated_at":"2015-07-05T22:05:57Z","closed_at":"2015-07-05T22:05:57Z","body":"I have the following settings in my vimrc\r\n\r\n```\r\n\" vim-go\r\nlet g:go_fmt_command = \"goimports\"\r\nlet g:go_fmt_autosave = 1\r\nlet g:go_highlight_functions = 1\r\nlet g:go_highlight_methods = 1\r\nlet g:go_highlight_structs = 1\r\nlet g:go_highlight_operators = 1\r\nlet g:go_highlight_build_constraints = 1\r\n```\r\n\r\nWhen I save go fmt is run by it doesn't appear to be using goimports for formatting. I have to manually run :GoImports each time."},"comment":{"url":"https://api.github.com/repos/fatih/vim-go/issues/comments/118670557","html_url":"https://github.com/fatih/vim-go/issues/474#issuecomment-118670557","issue_url":"https://api.github.com/repos/fatih/vim-go/issues/474","id":118670557,"user":{"login":"fatih","id":438920,"avatar_url":"https://avatars.githubusercontent.com/u/438920?v=3","gravatar_id":"","url":"https://api.github.com/users/fatih","html_url":"https://github.com/fatih","followers_url":"https://api.github.com/users/fatih/followers","following_url":"https://api.github.com/users/fatih/following{/other_user}","gists_url":"https://api.github.com/users/fatih/gists{/gist_id}","starred_url":"https://api.github.com/users/fatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fatih/subscriptions","organizations_url":"https://api.github.com/users/fatih/orgs","repos_url":"https://api.github.com/users/fatih/repos","events_url":"https://api.github.com/users/fatih/events{/privacy}","received_events_url":"https://api.github.com/users/fatih/received_events","type":"User","site_admin":false},"created_at":"2015-07-05T22:05:57Z","updated_at":"2015-07-05T22:05:57Z","body":"Hi @gregf. I don't know how this is possible, the only option would be that `goimports` is not installed. This feature is working because I'm using it myself and there are no recent changes on this particular feature. \r\n\r\nTo install `goimports` please run `:GoInstallBinaries` or invoke `go get golang.org/x/tools/cmd/goimports` from your terminal. Let me know how it works for you. Cheers."}}