Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bugs in vi-delete and vi-put-*



On Sat, Nov 21, 1998 at 06:15:15PM -0800, Bart Schaefer wrote:
> cursor after "line", type ESC dd P j.  Note that you end up on the line
> below the prompt, even though there was no newline in what was deleted.
> Now type p.  Note that you end up with:

This is consistent with vi.  dd deletes current line, including newline.
If you type dd on a line /with content/ in a multiline command, that
line is deleted.  Your point about a feep on an empty line is noted.

It looks as though you want dd, when there is only one line, to behave
like 0d$ -- special case it?

HTH
-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?



Messages sorted by: Reverse Date, Date, Thread, Author