VISUAL vs EDITOR - Understanding the Difference
In Unix-like systems, you’ll see two environment variables frequently associated with text editing: VISUAL and EDITOR. At first glance, they look interchangeable — you’ll often see them both set to the same editor. Historically, though, there’s a reason they exist separately, and in certain environments today you may still benefit from giving them different values. Historical Context Line Editors vs Visual Editors Very early terminals had no cursor-positioning features. So editors (such as ed and ex) were command-based “line editors”....