Ubuntu: Changing default text editor
Nano is the default editor in ubuntu. This is how to change it to your preferred editor.
sudo update-alternatives --config editor
Choose preferred editor:
There are 4 alternatives which provide `editor’.
Selection Alternative
———————————————–
1 /bin/ed
2 /usr/bin/vim
*+ 3 /bin/nano
4 /usr/bin/emacs21
Press enter to keep the default[*], or type selection number: 2










Thanks for the tip. My boss keeps changing the damn editor to joe and I keep forgetting how to change it back to vim.
[...] While adding some jobs to crontab i found out that the default editor in Ubuntu is nano (oh the horror !). Being a fanatic vim fan, i had to change it right away. If you wanna know how, i added it to the Portuguese Ubuntu Unofficial guide (in Portuguese) and in English here. [...]
Pingback by fragility » Blog Archive » Editors and jobs | September 10, 2006 |
Not all of the installed text editors are available in the list. I would like to set gedit back to my default text editor instead of nedit.
Do you want gedit to open when you configure tasks in shell e.g. set crontab or check into subversion? Sorry I do not know this. But…
if you want to open gedit when you click a file in Nautilus then just find a txt file with Nautilus and right click file. Choose properties and Open With and choose preferred file.
Just Fine!
Thanks
###################################################
sudo update-alternatives –config editor
There are 5 alternatives which provide `editor’.
Selection Alternative
———————————————–
1 /usr/bin/vim.tiny
2 /bin/ed
3 /bin/nano
4 /usr/bin/vim.basic
*+ 5 /usr/bin/vim.gtk
Press enter to keep the default[*], or type selection number:
#####################################################
Why doesn’t is show kate???
Any ideas..???
w00t, my midnight commander is using its own editor again, tyvm !!!