When editing xml, lines are indented when pressing (among others) <
, >
or <CR>
according to the indentkeys
setting. For example:
<tag>
</tag|
If the cursor is on |
and I press >
, the >
is inserted and the line gets indented properly:
<tag>
</tag>|
So far so good.
However, when I use omni-completion, it doesn't work. For example:
<tag>
</|
If I now press <C-X><C-O><C-Y>
to trigger omni-completion and accept the result, I end up with this:
<tag>
</tag>|
How can I arrange that the line is properly and automatically indented? I'd prefer not to define any mappings, if possible.