Permalink
Browse files

Set $VISUAL

Most tools look for $VISUAL before $EDITOR, and we tend to want that
anyway. This allows people to customize the two, for example using GUI
vim for $VISUAL and normal vim for $EDITOR, or more extreme: `ex -v` for
$VISUAL and `ex` for $EDITOR.
  • Loading branch information...
1 parent aa31dd7 commit 390a383b6beb7127f0cf150ff5a824e4580b1094 @mike-burns mike-burns committed Feb 15, 2013
Showing with 3 additions and 2 deletions.
  1. +3 −2 zshrc
View
@@ -12,8 +12,9 @@ compinit
# automatically enter directories without cd
setopt auto_cd
-# use vim as an editor
-export EDITOR=vim
+# use vim as the visual editor
+export VISUAL=vim
+export EDITOR=$VISUAL
# aliases
if [ -e "$HOME/.aliases" ]; then

0 comments on commit 390a383

Please sign in to comment.