yadm-new/.bashrc.d/editor

13 lines
210 B
Text
Raw Normal View History

2024-10-23 00:19:57 -04:00
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
2024-11-12 20:09:34 -05:00
export EDITOR="nvim"
export SUDO_EDITOR="nvim"
export DIFFPROG="nvim -d"