Changing the default text editor to vi on Ubuntu is fairly easy however it may be tricky depending on how it has been set since there are numerous ways. In BackTrack Linux for instance the default editor is set using select-editor so if you follow another Ubuntu Linux howto it may tell you to modify the default editor using update-alternatives. Below I describe setting the default text editor using both of the mentioned methods and note a couple other locations where it can be set.
First of I would like to say that none of these hacks and files are my own work. This stuff was done by all the amazing phone developers over at XDA Developers. I am am simply writing a few posts on rooting the HTC Evo since most of the information was all spread out over the forums and I had a hard time gathering it all together in a organized manner.
NOTE: Please make sure you have completed parts 1,2 & 3 of this tutorial series before attempting this part.
As anyone knows from my previous posts I have been giving Ubuntu 10.04 a test drive and so far I am pretty happy with it. I have been spending most of my time configuring the various small things I prefer in Linux. One of those things is I like to have vi as my default editor. Below I will outline a simple way to change your default editor in the shell.