Use nvim if installed

This commit is contained in:
Anthony Rose 2024-02-29 11:13:35 +00:00
parent 54ec2aca1a
commit 4e82d1bd1b

View file

@ -222,6 +222,14 @@ else
alias vim=vi
fi
# Use nvim if installed.
if command -v nvim > /dev/null
then
export EDITOR="nvim -f"
alias vi=nvim
alias vim=nvim
fi
# Use root's cache instead of having one for root and one for the user.
if [ "$(id -u)" -ne 0 ] && [ -x /usr/bin/dnf ]
then