How to change default text editor

Nacházíte se: / Linux / How to ...

server:~# update-alternatives --config editor

There are 5 alternatives which provide `editor'.

Selection Alternative
-----------------------------------------------
1 /bin/ed
*+ 2 /bin/nano
3 /usr/bin/vim.tiny
4 /usr/bin/vim.basic
5 /usr/bin/mcedit-debian

Press enter to keep the default[*], or type selection number: 5
Using '/usr/bin/mcedit-debian' to provide 'editor'.
server:~#