Change the default editor

0

I ran into this with CentOS 5. Where the default editor for the system is set to nano!
I like vi and wanted to change the default to it.

  1. login to the system
  2. vi .bashrc
  3. Add the following two lines to .bashrc
  4. run the command, source .bashrc
  5. A change to /etc/bashrc will make it a system wide change

Leave a Reply

    No Twitter Messages.