Vi
From LocalizationWiki
This page describes the set of most useful commands to be used with the vi Editor
Starting vi vi filename
Quitting vi without saving :q! Correcting text: ctrl+h --- delete a character ctrl+u --- delete a line ctrl+w --- delete a word
Moving the Cursor: h --- left j --- down k --- up l --- right
Deleting the Text: x --- single character character dw --- word deletion //Move the cursor position to the first character in a word dd --- line deletion cw --- Delete the word and go into INSERT mode //Move the cursor position to the first character of the word
Undo command: u
To display the modes in vi :set showmode
Adding New Line o //Position the cursor on the line above where you want the new text to go.
To write the content from Work Buffer to disk file ZZ
