yadm-new/.bashrc.d/editor

8 lines
136 B
Text

if command -v vim >/dev/null 2>&1; then
alias vi=vim
fi
if command -v nvim >/dev/null 2>&1; then
alias vim=nvim
alias vi=nvim
fi