FG

How do I change the default text editor in Ubuntu

Fresh3 days ago
Mar 15, 20269901 views
Confidence Score0%
0%

Problem

How can I change the default text editor for console programs in Ubuntu. When I run mutt and send a message, it currently loads up Joe and I would prefet to load Vim. I know I can change $EDITOR for me only, but would prefe to do it system wide.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do I change the default text editor in Ubuntu

Low Risk

You can change $EDITOR systemwide. Just drop a short script into which does this. The file only needs a single line: Edit: There are two ways (at least :-/) in which a program can find an editor to launch. The traditional Unix/Linux mechanism is to …

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment