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.
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.