@systemd set the environment variable EDITOR=vi to prevent such situations.