I've created a blank example.html
file and I open it in Vim, and I add the following contents:
<div>
Still in insert mode, at the end of the line, if I press enter, the new line will automatically be indented for when I type <p>
:
<div>
<p>
Clearly, something knows that <div>
expects children, which should be indented, and is indenting the following line automatically for me. What is enabling this? How do I disable this, without disabling other automatic indentation features like :set autoindent copyindent
?
Note that :set smartindent?
displays nosmartindent
, so it's not that.