Hello,
I noticed, when editing an XML file, that the automatic indent kept indenting each line beyond what it should be; given this file:
<and>
<this>
<isnt/>
</this>
</and>
If I set indentexpr to XmlIndentGet(v:lnum, 1) (letting the xml.vim file set it, in other words), I get no changes at all when I indent the file (gg=G). If I set it to XmlIndentGet(v:lnum, 0), I get:
<and>
<this>
<isnt/>
</this>
</and>
What I'm looking for is:
<and>
<this>
<isnt/>
</this>
</and>
I could be mistaken, but I think this is new. I'm using GVim 8.1.1925 on Windows. Am I doing something wrong?
Thank you in advance!
--
Salman
I, too, shall something make and glory in the making.