Vim: gg=G aligns left, does not auto-indent

风格不统一 提交于 2019-11-27 23:44:05

You need to enable loading of indentation files for specific filetypes. Change this line in your .vimrc...

filetype plugin on

..to this:

filetype plugin indent on

...then restart Vim and try again.

See :help filetype-indent-on for more details.

maybe he does not recognize it is html. Can you see syntax highlight?. Could you show your file + filename?

€: Please change the following: filetype plugin on -> filetype plugin indent on

Hope this solves it. regards

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