In this lecture, I have provided the information of few useful command of vi editor which we use frequently in day to day life in we are linux OS user.
Commands:
ESC - for command mode
i - for insert mode
:w! - to save file
:wq! - to save and exit from file
:q! - to exit without saving file
u - to undo changes
d- to cut n number of line ( where n is variable number of lines Ex- 1,2,3,4...)
p - to paste the copied or cut lines
yy - to copy n number of line