Currently I'm using Vim sessions to restore my window layout, but this approach also restores buffers, which I'd prefer to be closed on startup.
Is there a way to do something like:
$ vim file.txt
And in Vim something like:
The only variant I can think of is to create a function which will do this, but it's not convenient for me.
Though it just occurred to me, that it may be convenient to define a function, which will wipe out all buffers with some exceptions. I may call this function automatically during a session restoration.
I'll try this later today.