2008/11/5 fREW Schmidt <[EMAIL PROTECTED]>:
> So one of my coworkers just got mad at me for polluting a bunch of source
> code with fold markers, so I figured I should investigate syntax based
> folding. The folding that comes out of the box for perl is mostly great.
>
> Anyway, I want to fold on anonymous subroutines as well as regular subs.
> For example, I have a huge chunk of code like this:
>
> %blah = (
> foo => sub {
> ...
> },
> bar => sub {
> ...
> },
> );
>
> I'd like to fold on the foo and bar parts. Any ideas on how to do this?
> and if so I guess I just put the stuff in my ~/.vim/syntax/perl.vim?
>
> Any help at all would be appreciated.
Not sure if this is quite what you want, but have you tried the following?
set foldmarker={,}
set foldmethod=marker
Personally, I'd put it in ~/.vim/after/syntax/perl.vim: there are
other discussions on this list about the differences.
Al
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---