You can finally quit it!

So I tried to get the hold of Vim once upon a time, when I was taller, younger and sharper.

It was probably some cold windy midnight of the late December of 2016. I opened up my vault, picked up my black hoodie with the Linux Penguin on it and put it on. Then I turned off all the lights of my room and locked it up from the inside.

Only the black-shadowy light from my terminal’s light green font was illuminating my room. With this 10x hacker environment, and of course without even thinking of further consequences, as I always do, I opened up my terminal and simply wrote **vim** and hit enter.

And the rest is a story of nightmares.

Okay I am exaggerating a lot here. 😛

Recently, when I was asked by the boss at the office to learn Vim (as I had to navigate through an **ssh** server), I decided to finish my unfinished business with Vim.

Which brought me here on Medium, to write about Vim. As a wise man once posted on Facebook, sharing knowledge is power.

So, open up your terminal and let’s talk about it.

Step 1: Install Vim

I am assuming you have **bash** and you are a Linux user. I hope there are similar ways for Windows users to install Vim.

Step 2: Initiate Vim

This is going to be fun!

Vim!

Just write **:wq** and hit enter.

What it does is, it writes the file on your disk and saves all the changes you made, and quits. If you do not want to save the changes, hit **:q!**.

Yep, that’s it!

Step 3: Write Something Using Vim

So now we will actually write something on Vim.

Poem from Reddit.

Step 4: Edit the File

Poem by M Chowdhury (1995 — )

Step 5: Some More Commands

I guess this is it for the part 1. I hope to get the next part done very soon! Hope you learned something new. Now go and show it off to your girlfriend.

Thanks!

For part 2: Lets learn Vim! Part 2