The yank command in vi.

Ray Lubinsky rwl at uvacs.UUCP
Sun Jan 5 08:05:32 AEST 1986


> > ...  I contend it would be a more useful and more consistent
> > implementation of Y to yank to end of line.
> 
> Have you ever tried the string "y$" ?  After all since the vi
> command syntax seems to be <count><command><location> that
> should work!  And whadayaknow it does!
  :
>                You too can makeup new vi commands everyday or maybe
> only every other day!  Actually, maybe they're not new except to you.
> Show them to your friends!  Post'em to the net!  After all, someone
> might be looking for that particular "new" command.  :-)

Hey, cut the guy some slack!  Of course I knew about "y$" (he probably did
too), but the original article is just complaining about lack of orthogonality
in the key definitions.  After I thought about it for a minute, I decided he's
right.  Defining "Y" to mean "yank to the end of line" does make more sense.
-- 

Ray Lubinsky		     University of Virginia, Dept. of Computer Science
			     uucp: decvax!mcnc!ncsu!uvacs!rwl



More information about the Comp.bugs.4bsd.ucb-fixes mailing list