ok, let's say your cursor is on ok, and you delete this paragraph with
the command [d}] (just the d} part, for this mail i'm wrapping
keystrokes in 's). the reason you deleted it is because you want to
move it to another file.
so now you open the other file with [:e other.file.txt<return>]. as
you're scrolling down to where you want to put it, you accidentally
delete/yank some text.
you've saved the last file and now doing [p] just inserts the text you
just deleted/yanked. how can you get back what you deleted? vim
extends vi's numbered delete buffers so that they work from one file to
the next - switching files doesn't delete the numbered delete buffers.
the numbered buffers are numbered from 0 to 9. ["0p] is the same as
plain old [p]. ["1p] is the buffer from the previous delete, ["2p] is
from the delete before that, etc. note that while ["0p] has the last
delete or yank, the other numbered buffers only contain previous
it's handy, and thanks to donncha for looking it up the other day while
i was on the train.
kevin lyda Every gun that is made, every warship launched,
kevin at ie.suberic.net every rocket fired signifies, in the final
http://ie.suberic.net/~kevin/ sense, a theft from those who hunger and are
Dwight Eisenhower, 1953 ----> not fed, those who are cold and are not clothed.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!