I'm using a script to load files in vim remotely into one gvim instance per desktop viewport. It works fine, except that it causes an empty additional window, that will remain after closing all others, and needs extra keystrokes to quit.
Are there simple means of quitting in that situation, without messing up others like creating a new text initially empty, which creates the same situation of one empty window?
Normally, the situation before the one empty window is having a second tab containing one window.
So that could be made use of, by checking the state after closing a tab.
But that's more of a workaround than a clean solution.