Stigebil

Here, Hare, Here

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

July 6, 2006 - Posted by stigebil | ubuntu | | 7 Comments

7 Comments »

  1. Thanks for the tip. My boss keeps changing the damn editor to joe and I keep forgetting how to change it back to vim.

    Comment by John Purser | July 27, 2006 | Reply

  2. [...] 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 | Reply

  3. 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.

    Comment by sprocket | September 22, 2006 | Reply

  4. 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.

    Comment by stigebil | September 28, 2006 | Reply

  5. Just Fine!
    Thanks

    Comment by Snov | May 15, 2007 | Reply

  6. ###################################################
    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..???

    Comment by Bijay Rungta | February 2, 2009 | Reply

  7. w00t, my midnight commander is using its own editor again, tyvm !!!

    Comment by Arie | February 24, 2009 | Reply


Leave a comment