On Sun, Mar 1, 2009 at 10:46 AM, Zayd Connor <devrubygem / gmail.com> wrote:
> I'm using Vim text editor, and have not yet figured out how to auto format my code.

:h =

In Normal mode, hitting == will format the current line.
It takes the usual motion prefixes, so e.g. 5== will format the next 5 lines.
In Visual mode, = will format the selection.

This should work for any recognized file type. Most standard vim
installs include the ruby filetype plugin.  If yours doesn't or needs
upgrading, see:
http://tinyurl.com/dd2ef9

Solidarity,
lasitha.