88899Re: Way to persist custom window-specific info with :mksession?
- Apr 2, 2008dagfinn wrote:
>I can see that I'm having a hard time explaining what I'm reallyWindows have no identity, unless they are visible.
>after. The problem is re-connecting the information I've saved to the
>right windows. The function posted by A.Politz uses winnr() to achieve
>this (if I've understood it correctly). I've found that approach
>insufficiently reliable. I would like each window to be marked with an
>ID that will stay constant even when windows are opened and closed.
>And I would like that to be saved when :mksession is run. As I
>mentioned, it can be done with an option, but not without interfering
>with something else in Vim.
If you close the window, it's gone, all local variables are deleted.
You can open a new window, with the same dimensions, position and
buffer, but it's not the same window. Anything else would be news to
What you experience with window-local options, are the effects of how
vim handles this situations. If you spit a window, it inherits the
setting of the other window.
Are you talking about buffers instead ?
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>