msgbartop
A chronological documentation test project, nothing serious, really!
msgbarbottom

14 Jul 2010 Indent/format an entire file using vim

Posted by

You can format/indent an entire file using the vim editor and the gg=G command.

    gg - Goto the beginning of the file
    =  - apply indentation
    G  - till end of file

If you decide not to indent your file, just press u to undo the last operation.

Tags:

Comments are closed.