Skip to content

Instantly share code, notes, and snippets.

@chrismetcalf
Created February 3, 2011 04:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save chrismetcalf/809040 to your computer and use it in GitHub Desktop.
Save chrismetcalf/809040 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment