set $EDITOR. not sure why it wasn't set before.