Re-indent the whole file

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

gg=G

tool
vim10 commands
tags
vimlinux

More vim commands

all 10 vim commands