next up previous
Next: 10.2 Restoring Deleted Text Up: 10. Editing Previous: 10. Editing

Subsections

10.1 Deleting Text

Ved has a powerful array of deletion commands. Don't worry if you make a mistake ... most of what you delete can be restored later.

10.1.1 Delete To End Of Word [Escape Y]

Pressing [Esc][Y] will delete text from the current cursor position to the end of the current word-sequence. This command will always delete at least one character. See the discussion before ``Start of word'' (Section 9.1.4) for the definition of a word-sequence.

10.1.2 Delete Current Word [Escape L]

This command is very similar to delete to end of word, however it first moves the cursor to the start of the current word-sequence. You can duplicate this command with a start of word command followed by a delete to end of word command.

10.1.3 Delete To End Of Line [Escape K]

Delete from the current cursor position to the right edge of the screen (the current screen line). The trailing end of line character (if it is present) will not be deleted with this command.

10.1.4 Delete To Next Carriage Return [Escape V]

The text from the current cursor position to the next carriage return is deleted. The end of line character will not be deleted with this command.

10.1.5 Delete Current Line [Escape 7]

This command will delete the entire screen line the cursor is positioned on, including the trailing end of line character, if present. The cursor will be positioned on the next line in the same relative position, if possible. Note that the position of the cursor in the line has no effect on the command.


next up previous
Next: 10.2 Restoring Deleted Text Up: 10. Editing Previous: 10. Editing
2004-05-02