Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)?

share|improve this question
up vote 31 down vote accepted

Press the following keys in order, one at a time:

  1. F9 Activates the top menu.
  2. o Selects the Option menu.
  3. c Opens the configuration dialog.
  4. i Toggles the use internal edit option.
  5. s Saves your preferences.

alt text

share|improve this answer
Can you also add how to change the editor to any other editor? – trusktr Nov 4 '12 at 20:34
It would be better to specify a way to change this from the command line, but not by changing the OS default editor. – sorin Apr 30 '13 at 8:10
This is great, but is there a way to do the same in the command line, say, by adding/changing an environment variable? I'd like to automate this. – Nickolai Leschov Apr 5 '14 at 17:34
Looks it has changed to 't' instead of 'i' image – pshirishreddy Feb 15 at 5:43

Or change the standard editor...

Open a Terminal and type this command:

sudo update-alternatives --config editor

You will get an list of the installed Editors in your Ubuntu, and you can chose your favorit.

share|improve this answer
OP is not asking how to change the system default editor. – Ryan Thompson Dec 9 '10 at 18:33

Run MC as usual. On the command line right above the bottom row of menu selections type "select-editor" without the quotes. This should open a menu with a list of all of your installed editors. This is working for me on all my current linux machines.

share|improve this answer
Thank you! That was the only solution that worked for me with the mc version in the Ubuntu 14.04 repositories. – Sledge Hammer Aug 9 '15 at 11:57
Doesn't work for me. I get a "Command not found" error from Bash. – marlar Mar 17 at 8:50

Open Midnight Commander, go to Options -> Configuration and check "use internal editor" Hit save and you are done.

share|improve this answer

If you want to leave mc and system settings as it is now, you may just run it like

$ EDITOR=mcedit mc
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.