On Sun, Mar 1, 2009 at 1:24 AM, lasitha <lasitha.ranatunga / gmail.com> wrote:
> 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.

Thanks for posting this, even though I've been using vim forever, I
never bothered to look up how to do auto-formatting.

-greg