Linux VI (code editor)

 //Enter Your Code Here...The VI editor is the most popular and classic text editor in

the Linux family. Below, are some reasons which make it a widely used editor %u2013

1) It is available in almost all Linux Distributions

2) It works the same across different platforms and Distributions

3) It is user-friendly. Hence, millions of Linux users love it and use it for their editing needs

There is lots of command in linux touch ,cat,grep.df-h ,kill-9 for end process and many more commands .

vi <filename_NEW> or <filename_EXISTING>

 

VI Editing commands

i - Insert at cursor (goes into insert mode)

a - Write after cursor (goes into insert mode)

A - Write at the end of line (goes into insert mode)

ESC - Terminate insert mode

u - Undo last change

U - Undo all changes to the entire line

o - Open a new line (goes into insert mode)

dd - Delete line

3dd - Delete 3 lines.

D - Delete contents of line after the cursor

C - Delete contents of a line after the cursor and insert new text. Press ESC key to end insertion.

dw - Delete word

4dw - Delete 4 words

cw - Change word

x - Delete character at the cursor

r - Replace character

R - Overwrite characters from cursor onward

s - Substitute one character under cursor continue to insert

S - Substitute entire line and begin to insert at the beginning of the line

~ - Change case of individual character


Comments

Popular posts from this blog

OOP Assignment 3 helping materials

Square root Algorithm in C++

OOP lab 7 task solution