chrisbra / vim-xml-runtime

Vim filetype plugin for XML files
11 stars 6 forks source link

Better indentation #31

Open oceanwhit opened 3 years ago

oceanwhit commented 3 years ago

The issue is outlined in this stackoverflow question: https://stackoverflow.com/q/67746244/732948 I confirmed that this desired default behavior exists in at least one other editor (emacs). The patch invented in the accepted answer produces the desired indentation, albeit in a likely sub-optimal manner. My hope is that some implementation of this will be added to the indentation script.

Quinten commented 2 years ago

I also need this. Attributes need to spread over multiple lines. For html indentation this is correct in vim, but for xml this isn't working. The closing tag always jumps to the left. Using the patch from the link above seems to help...

chrisbra commented 2 years ago

how about creating a PR for that patch?