views:

109

answers:

2

Hi, I am using vi(not Vim) and I would like to continually undo the changes made. u works for a single command undo and Ufor a single line undo. But Is there a way to undo continuously like vim(I recall a command in vim can even undo changes by time!) in vi? Thanks in Advance.

Edit: I am using vi version 3.10

A: 

Repeat the undo, with the . key.

Rob Farley
But '.' only 'repeats' a single undo in vi.
wowrt
I used to be able to do: `u.....` to do 6 undos... But in vim that changed to `uuuuuu`, and the dots would reapply a change that I'd just undone.
Rob Farley
Ah - version 3... I was thinking of about 17 years ago.
Rob Farley
+1  A: 

If this is nvi, AFAIK you simply can't.

vlabrecque