How do I auto-indent an entire file in Vim? gg=G The gg=G command re-indents every line in the current file according to Vim's indentation rules. category: editing tags: #editing #indentation #formatting #normal-mode