Vim commands look weird. They are about muscle memory more than looking like something you can actually read.

  • gg=G applies your indent settings to your entire file using your current formatting settings.
  • gg takes you to the top of the file.
  • = applies the indent settings
  • G takes you to the bottom

You can also just hit == on a single line to reindent that line. Or you can use 5== to alter the following 5 lines.

You know, normal vim things.

More Reading