better editor choosing

This commit is contained in:
Daniel Flanagan 2016-01-30 20:13:55 -06:00
parent b02b13060b
commit c78a41eec1

View file

@ -47,9 +47,11 @@ alias p="ping 8.8.8.8"
# emacs aliases # emacs aliases
alias emacs="emacs -nw" alias emacs="emacs -nw"
export EDITOR="vim"
if command -v nvim >/dev/null 2>&1; then if command -v nvim >/dev/null 2>&1; then
alias vim="nvim" alias vim="nvim"
alias ovim="\vim" alias ovim="\\vim"
export EDITOR="nvim"
fi fi
# prompt # prompt