Thursday, January 8, 2015

Re: Can I mix the use of fold-expr with fold-marker just as mixing fold-expr with fold-manual?

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.

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