print "no editor found\n" if ! (defined $ENV{EDITOR} || defined $ENV{VISUAL});