|
Text Insertion and Deletion
|
| a |
Appends text to the right of the cursor |
| A |
Appends text at the end of the line |
| i |
Inserts text to the left of the cursor |
| I |
Inserts text at the beginning of the line |
| o |
Opens a new line below the current line for text to be inserted |
| O |
Opens a new line above the current line for text to be inserted |
| x |
Deletes character at cursor position |
| X |
Deletes character left of cursor position |
| dd |
Deletes current line |
| dw |
Deletes current word |
| d) |
Deletes rest of sentence |
| D or d$ |
Deletes from cursor to end of line |
| P |
Puts back text from the previous delete |
| rx |
Replaces selected character with x |
| u |
Undoes last change |
| U |
Restores current line |
| :R myfile |
Appends file "myfile" to current file at current cursor position |
| DEL |
Overwrites last character during text insertion |
| ESC |
Stops text insertion, returns to command mode |