How do you 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/06 18:53 UTC
Read the original article Hit count: 386

Filed under:
|
|

How do you pretty/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