# set EDITOR variable if type vim >/dev/null 2>&1; then export EDITOR="vim" fi