Working with Vim Editor

What is vi/vim ?

▪ Vi and Vim are built-in text editors in Linux

▪ Vi is by far the most distributed and used text editor in Linux

▪ Depending on your Linux distro, Vim may or may not be installed

▪ Vim (Vi IMproved) is an improved version of Vi

▪ Built to make creating and changing any kind of text very efficient

Use cases

▪ Small modifications can be faster, especially when you are currently working in the CLI

▪ Faster to create and edit at the same time

▪ Supports multiple formats

▪ When working on a server

Working with Vim

Vim has 2 modes:

▪ Command Mode

▪ Insert Mode

Command Mode

▪ This is the default mode

▪ You can't edit the text

▪ Whatever you type is interpreted as a command

▪ Navigate, Search, Delete, Undo, etc.

Insert Mode

▪ Allows you to enter text

▪ Pressing Escape, switches you back to command mode

Last updated