Ooops
Several levels of undoing are available ...
u
undo last change
U
undo all recent changes to current line
:e!
quit from
vi
and abandon all changes
:e!
undo all changes to file and start again
Later versions of
vi
support multiple
u
undo's.