Tutorial: How to use Vim instead of Vi with an alias
Last Update: Mar 25, 2023
I wrote a book! Check out A Quick Guide to Coding with AI.
Become a super programmer!
Learn how to use Generative AI coding tools as a force multiplier for your career.
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.
Want to learn more about Linux? Of course you do. Check out this Linux Fundamentals course. You can sign up for a free trial here and take it today!