You don't mention if you are using the vim-go plugin: https://github.com/fatih/vim-go
You might want to give it a try. With regards about vim formatting your Go source this way or that, it's somewhat moot because you have to run your source through the Go formatter before you can run/build it. When I write Go with vim, I generally don't worry too much what it looks like; as long as it's legible and then just let 'gofmt' do it's stuff. Regards, On 3 November 2017 at 17:06, Luveh Keraph <[email protected]> wrote: > I am using vim to edit Go language files. vim does something that I find > really irritating, but that I do not know how to override. > > When I add a line like > > import ( > > vim automatically inserts several tab characters in the next line, leaving > the cursor at the end of those characters. > > I hate that. I would like to have a single tab character, not several. Or > even nothing at all. Anybody know how to change this behavior? This may be > silly of me, but if I cannot change that I'd rather use a less clever and > proactive editor. > > -- > -- > You received this message from the "vim_use" maillist. > Do not top-post! Type your reply below the text you are replying to. > For more information, visit http://www.vim.org/maillist.php > > --- > You received this message because you are subscribed to the Google Groups > "vim_use" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Frank -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
