summaryrefslogtreecommitdiff
path: root/vidir
diff options
context:
space:
mode:
Diffstat (limited to 'vidir')
-rwxr-xr-xvidir5
1 files changed, 4 insertions, 1 deletions
diff --git a/vidir b/vidir
index f8227b1..f67f74d 100755
--- a/vidir
+++ b/vidir
@@ -39,7 +39,7 @@ Verbosely display the actions taken by the program.
=item EDITOR
-Editor to use. Defaults to vi if not set.
+Editor to use.
=item VISUAL
@@ -104,6 +104,9 @@ foreach (@dir) {
close OUT;
my @editor="vi";
+if (-x "/usr/bin/editor") {
+ @editor="/usr/bin/editor";
+}
if (exists $ENV{EDITOR}) {
@editor=split(' ', $ENV{EDITOR});
}