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?
You should add it to your shell’s configuration file. For Bash, this is TL;DR, add the following to your shell configuration (probably
|
|||
|
export EDITOR=vim
in your bashrc or zshrc or ..rc – Kent Apr 23 at 23:31