next up previous contents index
Next: Yank Up: Basic vi Keystrokes Previous: Inserting Text

Deleting Text

 
 X        		 Delete previous character.

x Delete character under cursor.

dw Delete the word the cursor is on.

D Delete from cursor to end of line.

dd Delete current line.

p Put deleted text after cursor.

P Put deleted text before cursor.

Once again, the deletion characters may be preceded by a number to perform multiple deletions; thus 5dd will delete the next 5 lines starting with the current line.



Alan Silverman
Wed Apr 12 16:54:02 METDST 1995