We all make mistakes, and when you mistakenly delete all that long line in vim, you really need the undo command. Well, vim has an undo command.
That is it, so simple, you can enter again, and again, to navigate through the last changes.
To fast forward changes, and redo them again, use CTRL+R
Now that you know this, you can go back to vim.