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