Debian Admin

Debian/Ubuntu Linux System Administration Tutorials,Howtos,Tips

  • RSS Subscribe

    subscribe to the Debian Admin RSS feed
  • Sponsors



  • Categories

  • Sponsors

  • Support DebianAdmin

    Amount $:
    Website(Optional):


  • Meta

  • Archives



Howto Change Default editor in Debian Etch

Posted by Admin on May 21st, 2007

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

By Default Debian Etch Provides the nano editor you need to follow this procedure.In this example i want to use vi editor as my default editor

Administrators who wish to change the default editor for all users will have to update the alternatives system using:

# update-alternatives --config editor

Once you enter it opens available editor options from your server you should see similar to the following screen here i have selected option4 for vi editor

If you are an user wishing to change the default editor can define the environment variable EDITOR by introducing the following lines in their own profiles

EDITOR=vi
export EDITOR
alias editor=$EDITOR

  • Share/Bookmark

Random Posts

2 Responses to “Howto Change Default editor in Debian Etch”

  1. mrG Says:

    The profile advice does not appear to work in either Etch or Ubuntu; I have .bash_profile containing the EDITOR=vim.tiny;export and alias lines as above, I even created a ~/bin/editor symlink! But I still get nano :(

  2. krp Says:

    I had the same problem I put ” export EDITOR= ” in .bashrc

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>