i think the indent utility may help

2007/10/26, Gary Johnson <[EMAIL PROTECTED]>:
>
>
> On 2007-10-26, Ben Schmidt <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > a beginner question, can I reformat entire file code from:
> > > if (...)
> > > {
> > >     // some action
> > > }
> > >
> > > to:
> > > if (...) {
> > >     // some action
> > > }
> > >
> > > Thanx.
> >
> > The '=' command will reformat code.
>
> The '=' command does not reformat code--it indents code.  In
> particular, the '=' command will not move the opening brace from one
> line to another.
>
> Regards,
> Gary
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui