[download]

local/bin/gvim

   1 #!/bin/bash
   2 
   3 id=($(< ~/.vim/vimsid) gvim)
   4 ls=$(vim --serverlist | grep -ic $id)
   5 
   6 [[ $1    == -f ]] && shift
   7 [[ $#$ls == 00 ]] || rt=-tab
   8 
   9 vim -g --servername $id ${@:+--remote$rt-silent "$@"}