The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 09-12-2008
amaltemara amaltemara is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 1
Lightbulb check VISUAL env variable

I had the same problem, check and see if the VISUAL env. variable is set to something other than vi.

Code:
set | grep VISUAL
If so, then that's overriding the EDITOR variable.

Many ways to fix...


Add to your ~/.bash_profile (or /etc/profile, or /etc/profile.d/SOME_FILE)
Code:
export VISUAL=vi