In This video you will learn how to edit the file in Linux with Vim Editor.
Insert Mode:
i= Insert text in current cursor position.
a= append text after current cursor position.
o= open new line after current cursor position.
O= open new line before current cursor position.
Visual Mode:
v= Enter into visual mode.
arrow Key= make selection of text
y= copy the selection
p= paste the copied text after current position
P= paste above the current cursor line
x= delete single character
d= delete complete line.
D= delete from cursor position.
Command Mode:
Esc: to come into command mode
:w = save
:wq! = save and quit
:x! = save and quit
:q! = Quit without saving
:u = undo the changes
/string = searching the pattern
:%s/oldtext/newtext/g = replace the old text with new text.