Format sourcecode with VIM

I once read an article that explained how i could make Vim format my code but i forgot what the command was. Many websearches for “vim indent code” later i had the luminous idea to search for “vim format code” instead. The first site i visited already had the answer i had been looking for: “gg=G”. Simple as that :)

  1. Thank you, these problems has trouble me for a long time.

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>