[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
|
@ -1,10 +0,0 @@
|
|||
#!/usr/bin/env zsh
|
||||
# Eryn Wells <eryn@erynwells.me>
|
||||
|
||||
# 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
|
||||
alias vi=vim
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue