FG

Change default text editor for crontab to vim

Fresh3 days ago
Mar 15, 2026150998 views
Confidence Score1%
1%

Problem

I'm using ubuntu 9.10 and the default text editor is nano, which i hate. (doesn't everyone?) Normally it's not a problem as i just vi or gedit everything but is opening with nano. I tried changing it to vim using and selecting option 3 ("/usr/bin/vim.basic"). This has changed it for sudo and non-sudo alike. But still opens nano. Any ideas? max

Error Output

crontab -e

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Change default text editor for crontab to vim

Low Risk

The command will check the environment variables and for an override of the default text editor, so... or should do the trick.

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment