[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: vim undel



On Wed, Feb 12, 2003 at 06:21:33PM +0000, Hugh Saunders wrote:
> 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?

Hitting "u" (for undo) will put them back. vim keeps a very large number
of undo buffers. If you undo too far, you can use ctrl-r to redo.

If you delete something with "d" it also ends up in vim's cut buffer, so
you can use "p" to paste it below the current line (or "P" to paste it
above the current line).

-- 
Michael Heironimus



Reply to: