From f1e3e8658d781b98a30e3c3547e02c2a48fa27c4 Mon Sep 17 00:00:00 2001 From: Simon Egersand Date: Tue, 9 Jun 2020 22:46:58 +0200 Subject: [PATCH] Fall back to vi instead of vim --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff640f9..c6c9532 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ GitHub, so it's easy to start using it. And since it's your own repository you can make it private to keep your ideas secret. `eureka` looks at your environment variables to decide what program to use. -* `$EDITOR` for what to edit your ideas with (falls back to `vim`) +* `$EDITOR` for what to edit your ideas with (falls back to `vi`) * `$PAGER` for what to view your ideas with (falls back to `less`) ## Installation diff --git a/src/lib.rs b/src/lib.rs index c86ab6b..58e6b6d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -106,7 +106,7 @@ where let editor = match env::var("EDITOR") { Ok(e) => e, Err(_) => { - get_if_available("vim").expect("Cannot locate executable - vim - on your system") + get_if_available("vi").expect("Cannot locate executable - vi - on your system") } }; match Command::new(&editor).arg(file_path).status() {