Skip to content

Instantly share code, notes, and snippets.

@docwhat
Created December 8, 2012 22:42
Show Gist options
  • Select an option

  • Save docwhat/4242334 to your computer and use it in GitHub Desktop.

Select an option

Save docwhat/4242334 to your computer and use it in GitHub Desktop.
Fixing crashes with Vim and MacVim on OS X
for i in /usr/local/opt/vim/bin/*(N) /usr/local/opt/macvim/bin/*(N); do
i=$(basename $i)
alias "${i}"="env -u GEM_PATH -u GEM_HOME command ${i}"
done
export GIT_EDITOR="env -u GEM_PATH -u GEM_HOME vim +1"
export EDITOR="env -u GEM_PATH -u GEM_HOME vim"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment