I believe I can do something like
export EDITOR=vi, but I'm not sure what exactly to enter, and where.
How can I set "vi" as my default editor?
This question came from our site for professional and enthusiast programmers.
You should add it to your shell’s configuration file. For Bash, this is
TL;DR, add the following to your shell configuration (probably