Skip to content

Commit

Permalink
Fall back to vi instead of vim
Browse files Browse the repository at this point in the history
  • Loading branch information
simeg committed Jun 9, 2020
1 parent 8d46b96 commit f1e3e86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit f1e3e86

Please sign in to comment.