30.8 Get Back What You Deleted with Numbered Buffers
Being able to delete large blocks of text at a single bound is all very well and good, but what if you mistakenly delete 53 lines that you need? There's a way to recover any of your past nine deletions, because they're saved in numbered buffers. The last delete is saved in buffer 1, the second-to-last in buffer 2, and so on.
To recover a deletion, type
The deletion in buffer 2 is placed on the line below the cursor.
If you're not sure which buffer contains the deletion you want to
restore, you don't have to keep typing
to put the contents of each succeeding buffer in the file
one after the other.
Each time you type
- from O'Reilly & Associates' Learning the vi Editor , Chapter 4