In a buffer with filetype set to "ant" or "xml";
:set noautoindent
:set nosmartindent
Now type something with an open brace ('{'), and vim indents the line. Closing the braced expression does not cause vim to un-indent the line. Typing tags, both open and closed, causes strange indentation that is incoherent with the xml structcure.
No lines should ever be indented by vim while I am typing in the buffer.
VIM - Vi IMproved 9.0 (2022 Jun 28, compilé Nov 16 2023 00:00:00) Rustines incluses : 1-2105
Fedora 38 on a plain gnome terminal.
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
That's because for xml files, indentexpr is set, see indent/xml.vim. And ant filetypes load the xml indent script.
You need to set indendexpr= (i.e. to an empty string) in ~/.vim/after/ftplugin/xml.vim.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
or remove indent from filetype plugin indent on
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #14693 as not planned.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
not a bug, so closing
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()