I have read Vim indent xml file and Indenting entire file in Vim without leaving current cursor location, but I want to something slightly different:
- Can I use vim to indent an entire XML file but without changing the file. The only thing that should change is the representation, but not the file itself.
For those interested: I work with books in xml format. If the file is changed, this is usually by adding tabs and/or spaces. This messes up my data (because there might actually be tabs or spaces in the text itself).