How can I set "vi" as my default editor in UNIX?
You need to add it to your shell' s arrangement documents. For Bash, this is
~/.bash_profile. You need to additionally set
$VISUAL, as some programs (appropriately) make use of that as opposed to
VISUAL). In addition, unless you recognize why, you need to set it to
vim as opposed to
TL ;DR, add the complying with to your shell arrangement (possibly
export VISUAL=vim export EDITOR="$VISUAL"