I tweaked it a bit:
- Made the indenting match the examples just above this block.
- Removed trailing spaces.
- Simpler log message.

stsp told me you're one of us vim guerillas :)
Just in case you didn't know, this is how I removed trailing spaces and #
characters:

<mark the section with Shift-V (visual line)>
:'<,'>s/[ #]*$

(just type :s/[ #]*$ )

And I do hope you know the indenting commands
'<<' to indent a single line to the left,
'>>' likewise to the right, and also
mark-visual-block + '<', then '.' to indent more,
mark-visual-block + '>', then '.' to indent more.

...and these lines in your .vimrc do the subversion style indenting
(stolen/tweaked):