Phone

+234 (0) 7032253598

Email

[email protected]

Opening Hours

Mon - Sun: 7AM - 7PM

VI (pronounced “vee-eye”) is a powerful text editor for Unix and Unix-like operating systems. It has been around since the 1970s and is still widely used today. VI is known for its extensive set of commands and its efficient keyboard-driven interface.

VI has two modes: command mode and insert mode. In command mode, VI provides commands for navigation, editing, and other tasks. In insert mode, VI behaves like a more traditional text editor, allowing users to enter text directly.

 

Here are some commonly used VI commands:

VI Command Function (s)
i Enter insert mode at the cursor position

 

a Enter insert mode after the cursor position
o Create a new line below the cursor and enter insert mode
O Create a new line above the cursor and enter insert mode

 

Esc Exit insert mode and return to command mode
h Move the cursor left
j Move the cursor down
k Move the cursor up
l Move the cursor right
w Move the cursor to the beginning of the next word
b Move the cursor to the beginning of the previous word
0 Move the cursor to the beginning of the current line

 

$ Move the cursor to the end of the current line
x Delete the character under the cursor
dd Delete the current line
p Paste the last deleted or yanked text after the cursor

 

yy Yank (copy) the current line

 

/search_string Search forward for a string

 

?search_string Search backward for a string
:w Save the current file
: wq Save the current file and exit VI
:q! Quit VI without saving changes

VIDEO EXPLANATION

PATRONIZE US BUY DOMAIN DONATE TO BIONUGGETS ($) DONATE TO BIONUGGETS (₦)

Recommended Articles

Leave A Comment

Your email address will not be published. Required fields are marked *