SUMMARY
The cursor is moved using either the arrow keys or the hjkl keys. h (left) j (down) k (up) l (right)
To start Vim from the shell prompt type: vim FILENAME
To exit Vim type:
To delete the character at the cursor type: x
To insert or append text type:
i type inserted text
NOTE: Pressing
SUMMARY
To delete a whole line type: dd
The format for a change command is: operator [number] motion where: operator - is what to do, such as d for delete [number] - is an optional count to repeat the motion motion - moves over the text to operate on, such as w (word), e (end of word), $ (end of the line), etc.
To move to the start of the line use a zero: 0
SUMMARY
To put back text that has just been deleted, type p . This puts the deleted text AFTER the cursor (if a line was deleted it will go on the line below the cursor).
To replace the character under the cursor, type r and then the character you want to have there.
The change operator allows you to change from the cursor to where the motion takes you. eg. Type ce to change from the cursor to the end of the word, c$ to change to the end of a line.
The format for change is:
c [number] motion
~ stay curious ~