Since the undo command in vimVi will act as a re-do when the last command was undo, I have used uu
as a means to go back to where I last edited. As far as I remember
If you're running Vim with nvi will treatnocompatible
set (as most people do), you want to use u
followed by CTRL+R
to undo & redo. Otherwise uu
differently and make that two undos, but for vim it shouldwill work although some of the other answers are probably more proper ways to do thisas in Vi.