How do you undo in vi?
Answer
To undo recent changes, from normal mode use the undo command:
Answer
To undo recent changes, from normal mode use the undo command:
- u : undo last change (can be repeated to undo preceding commands)
- Ctrl-r : Redo changes which were undone (undo the undos). Compare to . to repeat a previous change, at the current cursor position.