Friday, November 3, 2017

Changing vim defaults for editing Go files

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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment