Line breaks cannot be indented when editing HTML files in vim
黄舟
黄舟 2017-05-16 16:41:39
0
1
660

When vim edits HTML files, line breaks cannot be automatically indented. This makes me have to manually indent every time I change a line. I searched online for a long time and couldn't find the answer. So I came to help you.
Already added in vimrc:

filetype plugin indent on
set autoindent
set smartindent

In other types of files (such as PHP and JS, automatic indentation and newline indentation are available), but it is invalid in HTML files. Has anyone encountered the same problem as me? Solve. . .

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
曾经蜡笔没有小新

filetypeHave you set it up?

filetype plugin indent on
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template