[zsh] Tweak IO redirection in init_rc_vi

This commit is contained in:
Eryn Wells 2022-05-26 09:11:57 -07:00
parent 97c1b8ad30
commit b2a1d2fc83

View file

@ -1,8 +1,10 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
if whence -cp nvim &>-; then
# Prefer nvim and vim, in that order, over standard vi, which is insufferable.
if whence -cp nvim &> -; then
alias vi=nvim
elif whence -cp vim &>-; then
elif whence -cp vim &> -; then
alias vi=vim
fi