14.6. How do I format/indent an entire file? You can format/indent an entire file using the gg=G command, where gg - Goto the beginning of the file = - apply indentation G - till end of file