autoindent is subset of smartindent in vim?

家住魔仙堡 提交于 2019-12-02 20:29:30

smartindent is an old script that was meant, when it was written, to be a "smart" complement to autoindent. Since then, most languages have either specific indentation functions or use cindent with specific options.

Generally, smartindent shouldn't be used at all.

The following lines are usually enough to deal with indentation:

set autoindent
filetype plugin indent on

autoindent is not strictly necessary but it's good to have it when working with plaintext.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!