tries EDITOR environment variable

EDITOR is a common environment variable to have set on a Unix system. Might as well check that for the user's preference before launching the default editor.