The indent option in SED wich does not really work well.
(does not move braces to another line, etc)

There is an opensource indent program (classic UNIX program)
that can nicely indent/format the whole sourcecode.

http://www.gnu.org/software/indent/
http://universalindent.sourceforge.net/

This would be a good plugin.