Re: vim undel
> hello, i use vim to weed out large chunks of email so can quote
> [hopefully] the relevant bits. My method is :x,yd this is fine until i
> get one of the values wrong, then i may have deleted 10 more lines
> than expected. In the vim documentation i have found how to undo edits
> to one line but how can i restore a load of text ive delted? has it
> gone into some random buffer?
>
In command mode type the u key to undo that command. The p key will
paste the deleted lines, starting at the line under the cursor.
This is assuming that you haven't copied or deleted anything else.
note: All the delete commands use a default buffer. But since it's
always the same, any copy or delete command will overwrite the
previous one in the buffer.
-- Hugo
Reply to: