Using VIM Effectively

It’s time to Edit effectively in Vim, a visual article

Supratim Samanta
6 min readOct 6, 2021

--

Get motivated to use VIM seeing visual examples

Photo by Andrea Piacquadio from Pexels

If you are coming from my earlier article about how to effectively navigate in Vim, welcome again, or else, I am so glad you are spending some of your valuable time to learn this indispensable knowledge that Vim provides.

In case you care to go through the previous article, here it is:

In this post let’s discuss editing in vim.

Disclaimer: This post is not an exhaustive list of all the tricks of Vim, because it is impossible to capture all of them. This post is a repository of the most used ones with helpful gifs. The idea is to comeback again and quickly recall the tricks.

Understanding the VIM commands

All Vim commands can be thought of having distinct parts. Namingly:

  • nouns
  • verbs
  • location

For example :

or another example:

or:

When remembering these commands, if we remember this way and keep on using these commands everyday, in sometime they become muscle memory and we just use them without thinking.

Some extremely productive Vim user correctly said:

I don’t talk Vim’s language, Vim talks my language.

When it comes to editing, we have to discuss how we do go into insert mode in order to edit our document.

Everyone know, we press i to go in to insert mode. Now once there we have the dilemma where to start or where do we insert. Let’s see:

Insert mode

i

--

--

Supratim Samanta

300K+views 🙏🏼#Unconventional #ProblemSolver #Tech #Dev #Productivity . Join my fascinating journey.🕺 Support me at https://susamn.medium.com/membership