----- Original Message ----

> From: Christian Brabandt <[email protected]>

> > So I'm trying this:
> > 
> >       syn region POD start=/^=head[123]/ end=/^=cut/ fold
> 
> You don't need this. Simply set :let perl_fold=1 in your .vimrc should 
> suffice. And of course you need to set foldmethod=syntax.
> See :h ft-perl-syntax (Search for fold)

That line folds everything, but you put me on the right track:

  let perl_fold=1
  let perl_nofold_packages=1
  let perl_nofold_subs=1

Thanks!

 
Cheers,
Ovid
--
Buy the book         - http://www.oreilly.com/catalog/perlhks/
Tech blog            - http://use.perl.org/~Ovid/journal/
Twitter              - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6


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

Reply via email to