I realized I had deleted something for mistake when I typed
:wq,then how can I rollback to the pre-version?Thank you!
If you have Vim 7.3 (which was not available at the time this question was originally asked) you may enable persistent undo, where undo information is stored and remembered across Vim sessions, by putting in your ~/.vimrc:
You may also want to set the '
undodir' option. See: