[zsh] Move vi init to init_env_vi; set EDITOR in that function

This commit is contained in:
Eryn Wells 2022-05-28 09:07:40 -07:00
parent d2713240b1
commit 0883447a44

View file

@ -3,10 +3,10 @@
# Prefer nvim and vim, in that order, over standard vi, which is insufferable.
if whence -cp nvim &> -; then
if whence -cp nvim >& -; then
alias vi=nvim
export EDITOR=nvim
elif whence -cp vim &> -; then
elif whence -cp vim >& -; then
alias vi=vim
export EDITOR=vim
fi