Skip to content

Instantly share code, notes, and snippets.

@juil
Forked from chrismetcalf/gist:809040
Created July 6, 2012 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juil/3060083 to your computer and use it in GitHub Desktop.
Save juil/3060083 to your computer and use it in GitHub Desktop.
#!/bin/sh
SPACE="SERVER$(spacefinder | sed 's/Current Space ID: //')"
mvim --serverlist | grep $SPACE
if [ $? -eq 1 ]
then
mvim --servername $SPACE $*
else
mvim --servername $SPACE --remote $*
fi
@juil
Copy link
Author

juil commented Jul 6, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment