No, sorry for this abrupt assertion but indentation is no good in this
case. That's why there are many plugins based on expr. Folding is simply
too rigid for this job.

I just want to write a wrapper function to fold those long ducts. Any
thoughts?
On Feb 10, 2015 10:15 AM, "Tim Chase" <[email protected]> wrote:

> On 2015-02-10 09:57, Ben Fritz wrote:
> > On Monday, February 9, 2015 at 10:37:33 PM UTC-6, Bao Niu wrote:
> > > I'm looking for a plugin in that can fold something like this:
> > >
> > > config = {
> > >     '/': {
> > >         'tools.db.on': True
> > >         },
> > >     "/UI_JS": {
> > >         "tools.staticdir.on": True,
> > >         "tools.staticdir.root": os.path.abspath(os.getcwd()),
> > >         "tools.staticdir.dir": "./UI_JS"
> > >         },
> [snip]
> > >     }
> > >
> >
> > Many languages have built-in syntax-based folding if you set the
> > foldmethod to "syntax". What language is this?
>
> Based on the subject line, I'd say it's Python ;-)
>
> However, they're literals (dict-literals in this case as the
> curly-brackets indicate, but list-literals use square brackets, and
> tuple-literals use parens).
>
> So it sounds like the OP wants a blend of Python's indentation-based
> folding as well as matched-bracket/brace/paren folding.
>
> That said, given the above file, indentation-based folding doesn't do
> a bad job of this.
>
> -tim
>
>
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "vim_use" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/vim_use/2OdPTKIAOrQ/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to