check and warn when EDITOR is not set
fix bug: output of existing file;