Programming Blog

Jeremy Morgan

Mostly Coherent Ramblings of a Silicon Forest Software Developer

Tutorial: How to Use Vim Instead of Vi With an Alias

Author: Jeremy Morgan

Vim is a lot better than Vi, especially if you’re programming. If you would rather use Vim than Vi, and you’re on an older distro, here is how you set it up in your shell.

Edit your .bashrc file:

vi /root/.bashrc

Add a line to it:

alias vi=’vim’

And save the file. That’s it! Most newer distros do this automatically but some distros still use vi by default.