Posts Tagged mc

Change default console editor in Linux

I do not like default console editors in Linux, if you have the same issue and want to use another editor in your terminal by default, use the following command:

update-alternatives –config editor

This command will show you alternative editors as below, select the one you like more ( I personally like mcedit, it comes together with midnight commander) 🙂

There are 5 choices for the alternative editor (providing /usr/bin/editor).

 Selection Path Priority Status
* 0 /bin/nano 40 auto mode
 1 /bin/ed -100 manual mode
 2 /bin/nano 40 manual mode
 3 /usr/bin/mcedit 25 manual mode
 4 /usr/bin/vim.basic 30 manual mode
 5 /usr/bin/vim.tiny 10 manual mode
Press enter to keep the current choice[*], or type selection number: 3

, , , , , ,

1 Comment