5 ms·
Exactly. I have vim handle it for me every time I save. No problemo.
by artursapek 12y ago
Exactly. I have vim handle it for me every time I save. No problemo.
- krat0sprakhar 12y agoCan you elaborate on how you are doing this? Would love to add this to Vim. Thanks!
- kevrone 12y agoThere are some instructions in the docs for this: https://godoc.org/code.google.com/p/go.tools/cmd/goimports https://godoc.org/code.google.com/p/go.tools/cmd/goimports For sublime users, see here: http://michaelwhatcott.com/gosublime-goimports/ http://michaelwhatcott.com/gosublime-goimports/ It's a great tool, very convenient.
- artursapek 12y agoOne 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.
- rmcpherson 12y agoTry https://github.com/fatih/vim-go https://github.com/fatih/vim-go. It adds seamless support for all the go tooling to vim, including go-imports.