How To Reformat or Re-indent Files in VIM
erics, January 11th, 2019
In the normal vim mode, typing gg=G will reindent the entire file. == will re-indent just the current line. http://vim.wikia.com/wiki/Fix_indentation