[zsh] Move vi init to init_env_vi; set EDITOR in that function
This commit is contained in:
parent
4317bfd61e
commit
09ea02303d
4 changed files with 6 additions and 5 deletions
|
@ -3,7 +3,6 @@
|
|||
|
||||
export PAGER="less"
|
||||
export MANPAGER=$PAGER
|
||||
export EDITOR="vim"
|
||||
export VISUAL=$EDITOR
|
||||
export LESSHISTFILE="-"
|
||||
export GREP_OPTIONS="--color=auto"
|
||||
|
|
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue