Skip to content

Instantly share code, notes, and snippets.

@nobutaka
Created October 16, 2010 05:25
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 nobutaka/629457 to your computer and use it in GitHub Desktop.
Save nobutaka/629457 to your computer and use it in GitHub Desktop.
#!/bin/bash
LEFT=${6}
RIGHT=${7}
TMPLEFT="/tmp/${LEFT##*/}.$$"
TMPRIGHT="/tmp/${RIGHT##*/}.$$"
cp "$LEFT" "$TMPLEFT"
cp "$RIGHT" "$TMPRIGHT"
mvim --servername SVNDIFF --remote-tab-silent +"vertical diffsplit $TMPLEFT|wincmd w" "$TMPRIGHT"
sleep 0.1
SN=`mvim --serverlist | grep "SVNDIFF"`
until [ "$SN" == "SVNDIFF" ]; do
sleep 0.1
SN=`mvim --serverlist | grep "SVNDIFF"`
done
rm -f "$TMPLEFT" "$TMPRIGHT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment