From c78a41eec11393b8b714da77199030a156f3d9e3 Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Sat, 30 Jan 2016 20:13:55 -0600 Subject: [PATCH] better editor choosing --- sh/bashrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sh/bashrc b/sh/bashrc index 9245fe7..6083baa 100644 --- a/sh/bashrc +++ b/sh/bashrc @@ -47,9 +47,11 @@ alias p="ping 8.8.8.8" # emacs aliases alias emacs="emacs -nw" +export EDITOR="vim" if command -v nvim >/dev/null 2>&1; then alias vim="nvim" - alias ovim="\vim" + alias ovim="\\vim" + export EDITOR="nvim" fi # prompt