This looks good; solving the same problem I was having with Unity. But your solution hung me up for quite a while with mysterious failure. The problem was that Vim (8.1, default from Debian 10) does not have the clientserver feature compiled in. Hence the servername and serverlist options won't work. Maybe I'll compile a Vim to have proper support for this, but for people stuck on this problem, just have it open the file without this feature. Thanks.