Created
January 27, 2014 12:54
-
-
Save iOS0x00/8648065 to your computer and use it in GitHub Desktop.
sourcetree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
if [[ -f /Applications/MacVim.app/Contents/MacOS/Vim ]] | |
then | |
# bypass mvim for speed | |
VIMPATH='/Applications/MacVim.app/Contents/MacOS/Vim -g -dO -f' | |
elif [[ -f /usr/local/bin/mvim ]] | |
then | |
# fall back to mvim | |
VIMPATH='mvim -d -f' | |
else | |
# fall back to original vim | |
VIMPATH='vimdiff' | |
fi | |
$VIMPATH $@ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment