From fc84b06d3736832a8dbc2b8c8721d55ccad61fa5 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 7 Jan 2019 09:48:06 +1300 Subject: Return to vi as default visual editor This is getting in the way of my work a bit too much. I'm still learning how to use it, but throwing myself into the deep end at this point turned out to be a bad idea. --- sh/profile.d/visual.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'sh/profile.d/visual.sh') diff --git a/sh/profile.d/visual.sh b/sh/profile.d/visual.sh index d5280abd..50b8b423 100644 --- a/sh/profile.d/visual.sh +++ b/sh/profile.d/visual.sh @@ -1,8 +1,3 @@ -# If my Emacs wrapper is installed, use emacs as the visual editor; otherwise, -# use the system's vi -if command -v emacsm >/dev/null 2>&1 ; then - VISUAL='emacsm' -else - VISUAL='vi' -fi +# For a visual editor, use whichever kind of vi we get when we invoke 'vi' +VISUAL='vi' export VISUAL -- cgit v1.2.3