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. . .