Tab键== 4个空格并在Vim中的花括号后自动缩进 - Tab key == 4 spaces and auto-indent after curly braces in Vim

问题:

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从不使用制表符(将空格转换为制表符,糟糕!),使制表键 == 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 key == 4 spaces and auto-indent after curly braces in Vim
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章