Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)?
Asked
Active
Viewed 2e+01k times
6 Answers
106
Press the following keys in order, one at a time:
- F9 or Alt + 9 Activates the top menu.
- o Selects the
Optionmenu. - c Opens the configuration dialog.
- i Toggles the
use internal editoption. - s Saves your preferences.

Pablo Bianchi
- 17,371
Isaiah
- 60,750
22
You can also change the standard editor system-wide. Open a terminal and type this command:
sudo update-alternatives --config editor
You will get a list of the installed editors on your system, and you can choose your favorite.
Pablo Bianchi
- 17,371
7
If you want to leave mc and system settings as it is now, you may just run it like
$ EDITOR=mcedit mc
AntonioK
- 293
5
In user's home folder (/home/<user-name>/) there should be a file named .selected_editor. One can edit it and change it there to a desired editor.
# Generated by /usr/bin/select-editor
SELECTED_EDITOR="/path/to/mcedit"
Or remove this file to force MC to ask about default editor on first edit.
qba-dev
- 424
2
Open Midnight Commander, go to Options -> Configuration and check "use internal editor" Hit save and you are done.