diff -ur fvwm-2.5.21~/bin/fvwm-menu-directory.in fvwm-2.5.21/bin/fvwm-menu-directory.in
--- fvwm-2.5.21~/bin/fvwm-menu-directory.in	2006-11-21 03:10:33.000000000 -0500
+++ fvwm-2.5.21/bin/fvwm-menu-directory.in	2007-02-28 21:22:40.000000000 -0500
@@ -40,7 +40,7 @@
 my $dir   = $home;
 my $xterm = "xterm -e";              # the X terminal program to invoke
 my $exect = $ENV{'SHELL'} || '/bin/sh';
-my $execf = $ENV{'EDITOR'} || "vi";  # the command to execute on plain files
+my $execf = "mimeopen -n" || "mcedit";  # the command to execute on plain files
 my $execa = undef;
 my $commt = undef;
 my $commf = undef;
