Getting Started with Vim Editor

Getting Started with Vim Editor
Play this article

Intro

Hey reader, welcome back. You might have read this article on My Plans for Second Year of Computer Engineering, there are few of my future plans which I will try my best to accomplish. If you want to follow along with me, then keep an eye on this Computer Science Series.

I am starting with C++ as my first programming language. There are several reasons for this. So as we have decided to start, I will try to write a few articles on C++. This article will be about getting started with Vim Editor.

There are a lot of different editors out there. I am going to try to write about the ones which I have used, Vim is one of them.

What is Vim?

According to official site: Vim is a ubiquitous text editor Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X.

Vim is rock stable and is continuously being developed to become even better. Among its features are:

  • persistent, multi-level undo tree
  • extensive plugin system
  • support for hundreds of programming languages and file formats
  • powerful search and replace
  • integrates with many tools

Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.

How to install Vim?

Vim is light weight editor. So you can install it on your system. There are different ways to install Vim on different platforms.

Windows

For modern MS-Windows systems (starting with XP) you can simply use the executable installer:

gvim82.exe (ftp)

It includes GUI and console versions, for 32 bit and 64 bit systems. You can select what you want to install and includes an uninstaller.

Ubuntu

Step 1 : Update

sudo apt update

Step 2 : Upgrade

sudo apt upgrade

Step 3 : Search for vim package

sudo apt search vim
--or--
sudo apt-cache search vim
--or--
sudo apt-cache search vim | grep editor

Debian

Step 1 : Update

apt-get update

Step 2 : Install

apt-get install vim

How to use Vim?

There are so many articles on the internet on how to use Vim. So I am not going to add one more, instead I will mention few articles from which I got most of the knowledge.

  1. Interactive Vim Tutorials
  2. Game play Vim Tutorials
  3. 101 Beginners Vim Tutorials

Final words

So I will be droping few articles on my experience on C++. If you want to follow along with me, then keep an eye on this Computer Science Series.