Hi Ovid!

On Thu, 19 Feb 2009, Ovid wrote:

> 
> I'm trying to get folding of "POD" in Perl working.  POD starts with a left 
> justfied '=head1', '=head2' or '=head3'.  It ends with a left-justified 
> '=cut'.
> 
> 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)


regards,
Christian
-- 
hundred-and-one symptoms of being an internet addict:
120. You ask a friend, "What's that big shiny thing?" He says, "It's the sun."

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

Reply via email to