Skip to main content
2 of 2
uu will also undo & redo in nvi (see http://vi.stackexchange.com/q/2044/51); add note about Vim.
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274

Since the undo command in Vi 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.

If you're running Vim with nocompatible set (as most people do), you want to use u followed by CTRL+R to undo & redo. Otherwise uu will work as in Vi.

hlovdal
  • 233
  • 2
  • 6