in reply to How to Get XTerm Title

I don't know offhand right now, but vim resets the title after a session is done (i.e., should look somewhere in vim source code).