zsh: use nvim instead of vim when available
This commit is contained in:
parent
d13d72ec80
commit
4a7a665edb
2 changed files with 8 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
# set EDITOR variable
|
||||
if type vim >/dev/null 2>&1; then
|
||||
if type nvim >/dev/null 2>&1; then
|
||||
export EDITOR="nvim"
|
||||
elif type vim >/dev/null 2>&1; then
|
||||
export EDITOR="vim"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue