In VIM this is:
Code: Select all
gg
=G
=: indent
G: until bottom.
In order to do this with multiple files, do the following:
1) Open the files you want to indent in tabs.
For example all XMLs in the current folder:
Code: Select all
$ vim -p *.xml
2) Now use "tabdo" command to apply a command to all open tabs.
But how to translate the "gg=G"?
It works by putting the command "normal" before:
Code: Select all
:tabdo normal gg=G