From: einari@rhi.hi.is (Einar Indridason) Subject: Re: Long lines in vi (elvis) Date: 14 Apr 1993 23:54:54 GMT
In <1qevjm$k0s@hal.gnu.ai.mit.edu> mycroft@hal.gnu.ai.mit.edu (Charles Hannum) writes:
>The thing which severely annoys me about all vi clones is that `8dd4..'
>doesn't do the same thing as in the original.
>For the uninitiated, in vi:
> 8 - goes into the global argument register
> dd - deletes (8) lines
> 4 - replaces the global argument register
> . - repeats the `dd'; deletes 4 lines because the register changed
> . - repeats the `dd', again deleting 4 lines
>One clone repeats the whole `8dd', deleting 32 lines for the first `.';
>one ignores the `4'; one gets the `4' but forgets it later; etc.
What I would like, (and I feel is logical, but that is just my opinion), is
that the above command '8dd4..' would be intepreted as:
put 8 as a numeric argument in the Global Counting Register
dd delete lines... how many? 8, since that is what is the the GCR (:-)
put 4 as a numeric argument in the global counting register (GCR for short)
. repeate last 'action' (which was dd) with the GCR
(implied: put 1 in GCR) <--------------------- Note this line.......
. repeat last 'action' (dd) with the GCR which (IMHO) should contain 1,
i.e. delete one line.
This is what I think is logical, but you are of course free to
have your own views about that :-)
(Oh, my.... we are getting into an internal vi bashing. Quick, say
something nasty about gemacs, and all other editors, to draw attention away
from this thing :-) :-) :-)
(Ps regarding gemacs: I think the choice of an editor is personal, and I'll
respect your selection of XXX as your editor, if you will respect my choice
of YYY as my editor. (Insert suitable XXX and YYY.))
(PPs I have no intention to start yaew (yet another editor war) with this
note, so please, please don't write back saying that editor XXX is better
than YYY or vice verse!)