tossing VISUAL as being different from EDITOR, since this causes problems on assorted
authorChris Koeritz <fred@gruntose.com>
Wed, 14 Mar 2012 17:35:19 +0000 (13:35 -0400)
committerChris Koeritz <fred@gruntose.com>
Wed, 14 Mar 2012 17:35:19 +0000 (13:35 -0400)
platforms when gvim doesn't wait for the editing to be finished.

examples/custom_overrides/fred/fred_variables.sh

index e22f2b93d15d7057d93b4635e1110f595fa74649..682d7d65cae92aed2dddacd67c12af583669fc7b 100644 (file)
@@ -36,11 +36,8 @@ if [ -z "$NETHACKOPTIONS" ]; then
   export BROWSER=/usr/bin/firefox
 
   # editor and other mixed settings...
-  export VISUAL="$(which gvim)"
-  if [ $? -ne 0 ]; then
-    export VISUAL="$(which vi)"
-  fi
   export EDITOR="$(which vi)"
+  export VISUAL="$EDITOR"
   # the editors for revision control must wait while document is edited,
   # so gvim and others launched to x window are not appropriate.
   export GIT_EDITOR="$EDITOR"