[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 4317bfd61e
commit 09ea02303d
4 changed files with 6 additions and 5 deletions

View file

@ -3,7 +3,6 @@
export PAGER="less"
export MANPAGER=$PAGER
export EDITOR="vim"
export VISUAL=$EDITOR
export LESSHISTFILE="-"
export GREP_OPTIONS="--color=auto"

View file

@ -5,6 +5,10 @@
if whence -cp nvim &> -; then
alias vi=nvim
export EDITOR=nvim
elif whence -cp vim &> -; then
alias vi=vim
export EDITOR=vim
fi
export editor=vi