On Wed, Feb 10, 2016 at 12:19 AM, John Otter <[email protected]> wrote: > 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. >
I would expect :q followed by :new <file> to delete the existing window then open a totally new window, possibly (partly) related to the one which was current after :q but not to the one :q removed. Apparently you expect :q to "hide" the window rather than delete it, so :new <file> would inherit the closed window's settings? That would seem very counterintuitive to me. N.B. It isn't windows which can be "active" "inactive" or "hidden", it is (again) buffers, see ":help active-buffer". I suppose that the same adjectives applied to windows could only mean "the current window", "a window other than the current one, but on the same tabpage", and "a window on a tabpage other than the current one" respectively, which would not at all be the same thing as for buffers. In particular (by the definition of "active buffer") any window whatsoever contains an active buffer (which, after ":new" with no arguments, is an empty unnamed buffer, but still a buffer mentioned as active in the buffer list), while an inactive buffer contains no text but only metadata (such as options and/or marks). Best regards, Tony. -- -- 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.
