Thank you very much Ben!
My goal would be folding Python classes/functions automatically based on indentation, and also folding the import part at the top and some python long dict. The latter does not necessarily conform to indentation rules so marker would be ideal.On Tue, Jan 6, 2015 at 8:05 PM, Ben Fritz <fritzophrenic@gmail.com> wrote:
On Tuesday, January 6, 2015 9:16:09 PM UTC-6, Bao Niu wrote:
> On Saturday, January 3, 2015 3:59:14 PM UTC-8, Bao Niu wrote:
> > I read the below documentation:
> > >If you use the "expr" method to define folds, but they are not exactly how
> > >you want them, you could switch to the "manual" method. This will not remove
> > >the defined folds. Then you can delete or add folds manually.
> >
> > It works very well.
> >
> > However, if I want to switch to "marker" instead of "manual", I would lose all the foldings! Is there a way to mix up the expression fold-method with the marker fold-method? Thanks.
>
> Let me clarify it a little bit. What I'm looking for is first using fold-expr to automatically fold up those Python classes and methods/functions, then switching not into manual mode, but *marker* mode and still retain those folds set up by fold-expr. Is this possible with GVim 7.4? Many thanks.
What is your eventual goal? If you just want to make manual folds persistent, you can save a view with the :mkview command, and load it with :loadview.
--
--
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/ibbZ08p2cNg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+unsubscribe@googlegroups.com.
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment