Skip to content

Instantly share code, notes, and snippets.

@namutaka
Created January 16, 2010 13:54
Show Gist options
  • Save namutaka/278828 to your computer and use it in GitHub Desktop.
Save namutaka/278828 to your computer and use it in GitHub Desktop.
script for git-diff with MacVim
#!/bin/sh
#git_diff_macvim
mvim --servername GITDIFF --remote-tab-silent +"vertical diffsplit $2|wincmd w" "$5"
sleep 0.1
SN=`mvim --serverlist | grep "GITDIFF"`
until [ "$SN" == "GITDIFF" ]; do
sleep 0.1
SN=`mvim --serverlist | grep "GITDIFF"`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment