Use nvim if installed
This commit is contained in:
parent
54ec2aca1a
commit
4e82d1bd1b
1 changed files with 8 additions and 0 deletions
|
@ -222,6 +222,14 @@ else
|
||||||
alias vim=vi
|
alias vim=vi
|
||||||
fi
|
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.
|
# Use root's cache instead of having one for root and one for the user.
|
||||||
if [ "$(id -u)" -ne 0 ] && [ -x /usr/bin/dnf ]
|
if [ "$(id -u)" -ne 0 ] && [ -x /usr/bin/dnf ]
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue