sdu Asked: 2010-12-10 09:49:25 +0800 CST2010-12-10 09:49:25 +0800 CST 2010-12-10 09:49:25 +0800 CST How to switch the editor in mc (midnight commander) from nano to mcedit? 772 Using ubuntu 10.10 the editor in mc (midnight commander) is nano. How can i switch to the internal mc editor (mcedit)? 10.10 configuration command-line editor nano 6 Answers Voted Best Answer Isaiah 2010-12-10T10:14:55+08:002010-12-10T10:14:55+08:00 Press the following keys in order, one at a time: F9 or Alt + 9 Activates the top menu. o Selects the Option menu. c Opens the configuration dialog. i Toggles the use internal edit option. s Saves your preferences. Hurnst 2014-06-21T18:34:51+08:002014-06-21T18:34:51+08:00 Run MC as usual. On the command line right above the bottom row of menu selections type select-editor. 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. user7117 2010-12-10T10:07:18+08:002010-12-10T10:07:18+08:00 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. AntonioK 2015-01-27T23:06:33+08:002015-01-27T23:06:33+08:00 If you want to leave mc and system settings as it is now, you may just run it like $ EDITOR=mcedit mc qba-dev 2020-03-08T01:14:37+08:002020-03-08T01:14:37+08:00 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. PengiunPillup 2010-12-10T10:02:14+08:002010-12-10T10:02:14+08:00 Open Midnight Commander, go to Options -> Configuration and check "use internal editor" Hit save and you are done.
Press the following keys in order, one at a time:
Option
menu.use internal edit
option.Run MC as usual. On the command line right above the bottom row of menu selections type
select-editor
. 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.You can also change the standard editor system-wide. Open a terminal and type this command:
You will get a list of the installed editors on your system, and you can choose your favorite.
If you want to leave mc and system settings as it is now, you may just run it like
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.Or remove this file to force MC to ask about default editor on first edit.
Open Midnight Commander, go to Options -> Configuration and check "use internal editor" Hit save and you are done.