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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章