diff --git a/shells/functions b/shells/functions index 515a31d5..63264c72 100644 --- a/shells/functions +++ b/shells/functions @@ -45,7 +45,7 @@ function mycd() { else # If we get here, cd was not successful if [ -f "$1" ]; then - vim "$1" + $EDITOR "$1" else echo "Can't cd" exit 1