On Thursday, January 8, 2015 at 8:02:57 AM UTC-8, Ben Fritz wrote:
> On Wednesday, January 7, 2015 3:02:21 PM UTC-6, Bao Niu wrote:
> > Thanks. Where does Vim store all my defined folds? It creates a separate buffer like NERDTree does?
> >
>
> Please don't top-post. Reply BENEATH the message you are responding to, as I am doing here.
>
> I don't understand your question. Vim does not "store" your folds anywhere, unless you're referring to the :mkview command, in which case a separate file is used. Where that file is stored should be documented in :help :mkview or one of the linked help topics. I suggested you create a fold expression to use with foldmethod=expr. This expression is best placed into a function which is loaded with the rest of your Vim config. Alternatively, you can create a one-liner expression (not a function) and put it in a modeline in the file itself, but that is generally less useful.
Thanks Ben, I will conform to the convention and won't top-post in future.
By 'storing' I actually did not refer to persisting, but temporary. When I use foldmethod=expr to automatically fold up my classes, the foldlevel must be 'stored' somewhere, or otherwise after I switch to manual it would have been all lost. Is there something I'm wrong about this model? Then where does Vim temporarily store such thing? Enviroment variables? Or something?
--
--
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment