aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/visual.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-01-07 09:48:06 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-01-07 09:48:06 +1300
commitfc84b06d3736832a8dbc2b8c8721d55ccad61fa5 (patch)
tree97c993baaddcbe79b064c1fede46d27f4503cffc /sh/profile.d/visual.sh
parent5b2b933fd9382230ce39c4187d365b8e51634b2c (diff)
downloaddotfiles-fc84b06d3736832a8dbc2b8c8721d55ccad61fa5.tar.gz
dotfiles-fc84b06d3736832a8dbc2b8c8721d55ccad61fa5.zip
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.
Diffstat (limited to 'sh/profile.d/visual.sh')
-rw-r--r--sh/profile.d/visual.sh9
1 files changed, 2 insertions, 7 deletions
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