How does one align code (braces, parens etc) in vi?

Posted by Xofo on Stack Overflow See other posts from Stack Overflow or by Xofo
Published on 2010-04-06T18:50:33Z Indexed on 2010/04/23 22:03 UTC
Read the original article Hit count: 241

Filed under:
|
|

How do you prettify / align / format code in vi? What is the command?

I have pasted in a hunk of code and I need to have it all formatted/aligned... obviously I am a vi neophyte.

x

© Stack Overflow or respective owner

Related posts about vi

Related posts about align