Back to Blog Main Page

Getting Used to Using Vim

September 20, 2019

vimtutor

Getting used to Vim or Vi just really means using it a lot. Here, I write some ways to be more Vim proficient.

I first learned about Vim when I was watching a tutorial on Flask by Miguel Grinberg. I liked how you can just write and save a script without leaving the terminal. So I learned the very basic Vi commands like opening, writing, editing, saving, and closing a file from taking the Flask tutorial. However, as someone beginning to code, I didn’t find the time to really use it. I was bombarded with a lot of code editors, switching from one to another. Currently, I’ve been using mostly Visual Studio Code (I only know JavaScript and Python at this point).

Recently, I’ve had some time to learn using Vim from one of the online courses I took so I can increase my THINK40 hours (the amount of time required for IBMers per year to spend learning anything tech-related, I have 139 hours as of this writing!). To remember what I’ve learned from this course, I’m now trying to use Vim more. In fact, I used Vim to write this blog.

But I find that it will take a while for me to use Vim more frequently. Using VS Code, I found it easy to use and install linters and create the configuration. I got spoiled having all the automatic tabbing when I write code. With Vim or Vi straight out of the box, there’s none of that. The course I mentioned above talked about configuration so I had some basic knowledge of how it’s done. But looking at other people’s configuration would help, I think.

So, I came across a great blog today about learning more Vim and I find it very helpful so I’m linking that here. Another blog from the same site is also helpful in understanding how to configure Vim using .vimrc.

The picture above by the way, is the Vim tutorial that’s always available in Vim. It can be used by just typing vimtutor on the terminal.