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? 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. 回答1: As has been pointed out in a couple of answers below, the preferred method now is NOT to use smartindent, but instead use the following (in your