Hacker News new | ask | show | jobs
by artursapek 4421 days ago
Exactly. I have vim handle it for me every time I save. No problemo.
1 comments

Can you elaborate on how you are doing this? Would love to add this to Vim. Thanks!
Try https://github.com/fatih/vim-go. It adds seamless support for all the go tooling to vim, including go-imports.
There are some instructions in the docs for this: https://godoc.org/code.google.com/p/go.tools/cmd/goimports

For sublime users, see here: http://michaelwhatcott.com/gosublime-goimports/

It's a great tool, very convenient.

One of the things I love most about Go is how everything you need comes with the language, unlike many language ecosystems where you have to depend on third parties for profilers, plugins, etc.