问题:
How do I make vi - Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically indent code after curly brace blocks like Emacs does? 我如何制作vi - Vim从不使用制表符(将空格转换为制表符,不好!),制作Tab键== 4个空格,并在像Emacs这样的大括号块之后自动缩进代码?
Also, how do I save these settings so I never have to input them again? 另外,如何保存这些设置,以便我再也不必输入它们?
I've seen other questions related to this, but it always seems to be a little off from what I want. 我已经看到了与此相关的其他问题,但它似乎总是与我想要的有点不同。
解决方案:
参考一: https://stackoom.com/question/z1I/Tab键-个空格并在Vim中的花括号后自动缩进参考二: https://oldbug.net/q/z1I/Tab-key-4-spaces-and-auto-indent-after-curly-braces-in-Vim
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4492372