1 2 3 4 5
# If Vim exists on the system, alias vi to it if hash vim 2>/dev/null; then alias vi='vim' fi