Normal Mode

Normal Mode is the default mode when you open a file. In this mode, you can navigate and perform various operations on text.

Basic vi Commands

Text editors are essential tools for any programmer or computer enthusiast. One popular text editor that has been around for decades and is still widely used is vi (pronounced “vee-eye”). vi is a terminal-based text editor that offers powerful editing capabilities once you understand its basic commands.

In this article, we will explore the fundamental vi commands that will help you navigate, edit, and save your text files efficiently. Whether you’re a beginner or an experienced user looking to refresh your knowledge, this guide will provide you with a solid foundation in using vi.

Similar Reads

VI COMMANDS

Below is a list of some of the most used VI commands. To start using vi, open the terminal and type the below line:...

Modes in the Vi text editor

There are three modes in the vi text editor, they are :...

Normal Mode:

Normal Mode is the default mode when you open a file. In this mode, you can navigate and perform various operations on text....

Insert Mode:

To enter Insert Mode and start typing or editing text, press i (for insert before the cursor), I (for insert at the beginning of the line), a (for insert after the cursor), or A (for insert at the end of the line)....

Visual Mode

Visual Mode allows you to select text. You can enter Visual Mode by pressing v....

Navigation in VI:

1. Moving the Cursor:...

Editing Text

1. Inserting Text:...

Saving and Quitting

Saving:...

Searching

Searching for Text:...

Undo and Redo

Undoing:...

FAQs

...

Conclusion

In conclusion, vi is a versatile and powerful text editor that has stood the test of time. Understanding its basic commands is essential for efficient text editing in a terminal environment....