2010/8/9 Jeri Raye <[email protected]>:
> Hi,
>
> I'm trying to make a fold region that looks for the following
> - when a line contains the word "foo" that's the start of the fold
> - when one or more lines later the word "end" is found that should
> close the line
> - or when the words "end <with one or more space char> foo" is found
> that should close the line
Seems you are reinventing marker foldmethod...
:set foldmethod=marker
This way, lines contining '{{{' starts new fold (or subfold) and lines
containing '}}}' ends inner fold.
If you explicitly need to use 'foo' and 'end', you can change foldmarkers with:
:set foldmarker=foo,end
Regards.
--
Joan Miquel Torres__________________________________
Linux Registered User #164872
http://www.mallorcaweb.net/joanmiquel
BULMA: http://bulma.net http://breu.bulma.net/?l2301
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php