To indent the whole file automatically:
gg
=G
Explained:
* `gg` \- go to beginning of the file
* `G` \- go to end of the file
* `=` \- indent
To indent the whole file automatically:
gg
=G
Explained:
* `gg` \- go to beginning of the file
* `G` \- go to end of the file
* `=` \- indent