*nohtml*

local/bin/gvim

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