Ever needed to change something in a file, you only have a command line and the default editor is nano?

You can change this easily with one single command:



update-alternatives --config editor

This will call up an interactive input that lets you change the editor to what you want in about 5 seconds.

If you have only one editor installed, you will not receive the menu when executing update-alternatives. Instead you will get a message like the following:

There is only one alternative in link group editor (providing /usr/bin/editor): /usr/bin/vim.tiny
Nothing to configure.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.