Hi,
I have MS-Windows as my desktop PC, working remotely on a Linux box. So I have X server running on Windows. Although I use vim in a terminal window, I still need X-Server, as VIM uses it for server registration, and I use Vim client-server functionality a lot.
My problems begin when I have to restart X server. Then the original VIM registration is gone on the X server, and client-server functionality breaks. So far, the only way out of this is to restart VIM, and I would rather avoid this. Yes, I am aware about saving sessions etc, but I also run a lot of shells from inside Vim, so this is not what I am looking for...
What I am looking for is the ability to re-register vim as a server without quitting it. So far, I only found the function remote_startserver(). Unfortunately, this function can only be called if the vim instance has not been a server yet, which is not my case. Maybe I would be able to run it again if I could reset v:servername variable, but it is read-only :(
Any help would be appreciated.
Regards,
Alex