Browse files

Use macvim vim if available

  • Loading branch information...
1 parent dec08b7 commit 40a90d9d3f7b3c8eabbf60728405ce15b7e44218 @bhuga committed Feb 14, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 bash_dotfiles/vim.sh
View
8 bash_dotfiles/vim.sh
@@ -1,4 +1,10 @@
-export EDITOR=vim
+
+MACVIM=~/Applications/MacVim.app/Contents/MacOS/Vim
+if [ -e $MACVIM ]; then
+ export EDITOR=$MACVIM
+else
+ export EDITOR=vim
+fi
alias clearswaps='rm -f ~/.vim/swaps/.* ~/.vim/swaps/\.*'

0 comments on commit 40a90d9

Please sign in to comment.