Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Have funced check VISUAL as well as EDITOR. #2268
Both VISUAL and EDITOR are used for setting the preferred editor. Various applications disagree about which should be used, and there are examples that use either one and not the other. Recommended practice for users is to set them both to the same thing.
However, not everyone does that, so checking them both is a bit friendlier. Since VISUAL is usually the preferred editor when they are different, it should be checked first.