Skip to content

Instantly share code, notes, and snippets.

@iOS0x00
Created January 27, 2014 12:54
Show Gist options
  • Save iOS0x00/8648065 to your computer and use it in GitHub Desktop.
Save iOS0x00/8648065 to your computer and use it in GitHub Desktop.
sourcetree
#! /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