Re-indent whole file

Go to top (gg), re-indent to end of file (=G)

gg=G

tool
vim10 commands
tags
vimlinux

More vim commands

all 10 vim commands