How to change your default editor -Debian/Ubuntu-

Written by MyComputerAid on Tuesday, February 3, 2009 13:32 - 0 Comments
Tags: ,

Debian and Ubuntu uses for visudo, crontab and other similar applications the default text editor
, you want to change it use the update-alternatives command.

It is as easy as, run this on a terminal window.

sudo update-alternatives –config editor 

The options in my Debian system are:

There are 6 alternatives which provide `editor’.

Selection Alternative
———————————————–
1 /bin/ed
2 /bin/nano
3 /usr/bin/vim.tiny
*+ 4 /usr/bin/vim.gnome
5 /usr/bin/mcedit-debian
6 /usr/bin/emacs21

Press enter to keep the default[*], or type selection number:

The + sign denotes the default option, and the * sign denotes the actual selection, to change from vim to nano, just press 2 in this example and the ENTER.

Now all applications that uses an editor will use the new default one.


Article written by MyComputerAid.com

Related posts:

  1. Which Debian or Ubuntu are you using?
  2. What is the most popular Linux?
  3. Easily Install 9 Really Nice Ubuntu themes
  4. Clearing Package Cache on Debian/Ubuntu
  5. Simple linux FTP backup script
  6. Ubuntu – Reboot your system and force disk scan/check
  7. Open source free operating systems – Windows alternatives
  8. Enabling Remote Desktop on a Remote Machine
  9. Online Support Site for Internet Explorer
  10. Vista change registerd user



Leave a Reply

You must be logged in to post a comment.

2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC


Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC


Microsoft Desktop, Web browsers and Internet, Windows 2000, Windows 7, Windows 98, Windows Firewall and networking, Windows Vista, Windows XP - Feb 8, 2010 18:09 - 0 Comments

Disable Proxy settings in IE

More In Computers & PC