Re:Vim setup for Go
by seletskiy on Friday September 25, 2015 @01:51AM
(#10276559)
Looks like I was not clear enough. goimports works perfectly, but only on buffer save event (or by manual trigger).
Take an example, start from scratch:
package main
func main() {
fmt|
}
Cursor is at |, and when I type ., I immediatelly have fmt package imported and see completion menu for fmt package (without leaving insert mode or saving file, just by typing dot).
Take an example, start from scratch:
Cursor is at |, and when I type ., I immediatelly have fmt package imported and see completion menu for fmt package (without leaving insert mode or saving file, just by typing dot).Out of the box vim-go doesn't provide that.