Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread 'Sergiy Byelozyorov' via golang-nuts
Yes, but what I need is to run "goimports" and then "gofmt -s". If goimports supported -s, then I would be able to do what I need, but not with current vim-go implementation. On Tue, Jun 13, 2017 at 3:00 PM Fatih Arslan wrote: > I think there is a misunderstanding here. People somehow don't read

Re: [go-nuts] goimports flag parity with gofmt

2017-06-13 Thread 'Sergiy Byelozyorov' via golang-nuts
Ah. Good point. Added autocmd BufWritePre *.go :GoFmt autocmd BufWritePre *.go :GoImports to my .vimrc. Thanks. On Tue, Jun 13, 2017 at 3:38 PM Fatih Arslan wrote: > No you can do it. We have two commands, called :GoImports and :GoFmt. You > can set the new setting and then call first :GoImpor