In normal mode, typing gg=G will re-indent the entire file #vim