HomePage RecentChanges TestPreBash
#!Bash
# VIM
if which gvim > /dev/null;
then    
    alias vi=gvim
else
    if which vim > /dev/null;
    then    
        alias vi=vim
    else
        unalias vi
    fi
fi

# Mac VIM
if [ -x /Applications/Vim.app/Contents/MacOS/Vim ]; 
then
    alias vi=macvim
fi