On Sat, Apr 15, 2006 at 12:22:06PM +0530, Praveena M wrote:
> Hi,
> 
> I am new to vim-dev.
> 
> I am looking for some pointers to implement auformatting perl programs
> (similar to perltidy) using vim script.

     Vim has features to adjust the indentation automatically, but not
to break up lines of code.  If that suits you, see

:help indent-expression

in the vim docs.  (That is a short entry, and the docs do not say a lot
about it.  The most useful pointer in the section I suggest may be to
the examples.)

     If you want to do more than adjust the indentation, it may be
easier to call perltidy to do the work.

:help 'equalprg'
:help =

HTH                                     --Benji Fisher

Reply via email to