# usaco vim/edit/e [[ $# -ge 1 ]] || usage dir="$(find_problem "$1")" # run from inside the dir so :!./main etc. work and .in files are at hand (cd "$dir" && exec ${EDITOR:-nvim} main.cpp)