Every so often, you’ll run into a Unix box somewhere that has the editor defaulted to sed. Yes, you heard me. sed.
Don’t ask me why. While sed is pretty powerful, it’s a lot easier to mess with vi, isn’t it. Well what’s missing is the change in the .profile. You need to edit the .profile so that there is the following commands:
That’s it. But these two commands will set it up so that your environment defaults to vi when you relogin or you re-launch the .profile.