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. Using multiple SSH keys on Mac | Bykov TechnoBlog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: