The yank command in vi.
Phillip A. Ritter
ritter at spp1.UUCP
Wed Jan 8 04:01:06 AEST 1986
In article <82 at uvacs.UUCP> rwl at uvacs.UUCP (Ray Lubinsky) writes:
>> > ... 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!
> :
Why not just add the following line to your `.exrc' file?
map Y y$
>From now on, Y will yank to end of line.
Please don't flame on any of the following points:
(1) I know he was complaining about the lack of orthogonality in the
defaults,
(2) I know that .exrc might be a Berkeleyism, and
(3) I understand the arguments about changes to the defaults [you have to
redo them when you move, you forget its non-standard when helping
someone else, etc]
Other flames welcome (sorta...).
Phil Ritter
--
Phillip A. Ritter
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list