Introduction to Vim
Thumbnail
April 10 2023
A beginner friendly guide to grokking the vim editor

A brief history of the Vim and Vi editors

Installation

Many Linux distributions come pre-installed with Vim. However, if yours doesn’t have it, you can do so by

Open up Vim, and you’ll be presented with this screen.

Now, simply enter :(colon), your cursor will appear at the bottom of the editor. Insert q there and hit Enter to quit Vim. You have now successfully installed vim and learnt how to open it and exit it!

Basic concepts of Vim

In Vim, there are 4 modes, namely Normal, Insert, Command and Visual.

We will learn about each of these modes to some depth in this tutorial.

Normal

This is the mode where you navigate around your vim editor.