How do you undo in vi?

Stasenndb

New member
How do you undo in vi?
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.
 

Tìm kiếm

Back
Top