TL;DR: I want to persist
:Man windows in sessions
I am obsessed with sessions, and use tpope's vim-obsession for managing them. Coupled with a scripted tmux, sessions make for a perfect "quit, go home, come back" workflow.
Recently, I decided to embark on learning perl. Perl wonderfully ships with a massive amount of documentation, all of which is accessible via
perldoc. But, these pages are also available via manpages.
Perfect, says I: I can run vim,
:Man perl to view the documentation, then
:term to have a shell for experimenting with the scripts I'm writing as I write them.
I do this, then
:Obsession to save the session, and quit and restart (
vim -S) to see if it works the way I thought.
Unfortunately, the session didn't save my open
:Man window: it's not even present in the
I suspect this is a result of
'buftype'=nofile. I also suspect that what I am asking may be fundamentally impossible: I could edit the session code by hand, but there are so many cases and this is so error prone that even a one-time attempt to script this edit seems... unwieldy. By hand, I'm not even sure I'd know where to start, and it will just get overwritten by the next session save.
Obsession isn't really necessary to try this out yourself; all you need is