To type text press press insert or i
Copy paste, move the curser to the location where to start copy from select v for visual highlight text then press y for yank to copy text or d to cut, move to location to paste to and press p
Undo press u
Delete line press dd
Save press esc and then :wq! to write and quit
To quit with out save :q!
Navigation commands in VI
- Esc + Ctrl + End – Jump end of file.
- Hit Esc + Ctrl + Home : Jump start of file.
- Press Esc + gg : Go to top the file.
- Esc + G : Go to bottom of the file.
- Esc + G + A : Go to bottom of the file and in append text mode. …
- Hit Esc + A + $ : Go to bottom of the file and end of line.