dotfiles/dot_config/bash/editor.sh

9 lines
133 B
Bash
Raw Normal View History

2022-05-10 13:58:50 -04:00
EDITOR=vi
if which nvim > /dev/null 2>&1 ; then
EDITOR=nvim;
elif which vim > /dev/null 2>&1 ; then
EDITOR=vim
fi
export EDITOR