Next: 10.5 Transposing and Changing
Up: 10. Editing
Previous: 10.3 Editing Text
When you insert, delete or change single characters in your file Ved doesn't really change the entire file. Instead, it copies the current line into an edit buffer and makes the changes there. When you finish the line, the line is copied into the main buffer.
This means that you can cancel changes made to a line, if you do so before Ved updates the buffer.
The line is copied the buffer when any of the following actions occur:
- The cursor is moved up or down out of the line. This occur when you press the use the [Left] or [Right] keys to move out of the line.
- A non-editing command like jump, file, etc. is executed.
- The internal line buffer fills up.
If the line hasn't yet been copied to the main buffer, you can undo your changes with the [Esc][U] command.
2004-05-02