diff --git a/zsh/func/init_env_vi b/zsh/func/init_env_vi index 63eef8a..164b53c 100644 --- a/zsh/func/init_env_vi +++ b/zsh/func/init_env_vi @@ -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