Bram Moolenaar wrote:

> Perhaps you can move the window to another tab that lives in the
> background?

Thats a possible solution, but the would go against my buffers/windows
usage philosophy ahah

> Folding information is stored with the window, not the buffer.  You can
> have one buffer in two windows, folded differently.

Oh yeah, I know that but since I was reusing the same window I thought
that maybe
it could keep that info around.

It would be cool if a window cached the folding info of a buffer if
that window displayed the buffer previously and is either active or hidden.

2016-02-09 23:33 GMT+01:00 Bram Moolenaar <[email protected]>:
>
> John Otter wrote:
>
>> is there a technical reason why manual folds aren't maintained in
>> hidden buffers?  As per documentation one must use mkview and loadview
>> but for my specific use case
>> that is suboptimal.
>> I use a script to create manual folds to overcame vim slowdown when
>> using syntax and foldexprs methods,
>> but when I have a really big number of them reloading the view
>> everytime I switch back to it is impossible since it takes up to 4-5
>> seconds to process the view.
>
> Folding information is stored with the window, not the buffer.  You can
> have one buffer in two windows, folded differently.
>
> There are no hidden windows, so if the buffer leaves the window the fold
> info is gone.
>
> Perhaps you can move the window to another tab that lives in the
> background?
>
> --
> hundred-and-one symptoms of being an internet addict:
> 205. You're constantly yelling at your spouse, family, roommate, whatever,
>      for using the phone for stupid things...like talking.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\  an exciting new programming language -- http://www.Zimbu.org        ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" 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.

Raspunde prin e-mail lui