On Wed, Dec 08, 2010 at 08:51:33AM EST, Alex Efros wrote:
> Hi!
> 
> On Mon, Dec 06, 2010 at 04:55:16AM -0500, Chris Jones wrote:

> > I was wondering if anyone had implemented a barebones form of syntax
> > folding in Vim. By ‘barebones’, I mean something that automatically
> > creates folds for sections & subsections and possibly lists
> > & blocks.
> 
> There nice foldutil plugin for vim:

> http://www.vim.org/script.php?script_id=158

Thanks, I was looking for a non-plugin solution¹, but I will take a look. 

> It's general enough and know nothing about asciidoc, but I think it
> may be enough in most cases.
> 
> If you're using '==' style single-line headers, then just do this:
> 
>     :FoldMatching ^= -1
> 
> For two-line style headers you can try this, but it may fail in some
> cases:
> 
>     :FoldShowHiGroup title

Yes, it is not easy to add the feature to asciidoc.vim in a reliable
manner.

cj

¹ I have grown very suspicious of plugins over the years. 

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to