Changing the default config editor in Ubuntu

If you are following the articles at Slicehost, then you may notice that PickledOnion uses nano as the default editor. I somehow like vi more than nano (not ready for a debate 😉 ) and was looking for a way to make vi the default config editor. After some googling, I found how to do it.

I am writing it down here so that all I have to remember is that I just need to search my blog if I need to do it again in future.

Okay the command you have to use is (I am assuming that you are not logged in as root, which is the recommended approach)

sudo update-alternatives --config editor

And then press the number corresponding to the editor which you want to use. Below is the screenshot of how it looked in my slice.

Changing default config editor in Ubuntu

Related posts

Tags: , , , , ,

1 Comments so far

Follow up comments through RSS Feed | Post a comment

  • bruno says:

    i presume you are using vim and not vi , vim is vi improved, and i agree vim has this nice feauture for handling multiple files edition using a single daemon.

1 Trackbacks/Pingbacks so far

Leave a Reply to bruno Cancel reply

Your email address will not be published. Required fields are marked *