Problem with vi and wrapmargin

Rick Zaccone zaccone at psuvax1.UUCP
Thu Jun 28 08:09:19 AEST 1984


vi doesn't seem to be able to put yanked text into a line when
wrapmargin is set (in my case, wm=9).  To repeat the problem, copy the
following three lines into a file.  Put the cursor on the word "is" in
the second sentence and do a "y$" -- yank to the end of the line.  Now
move to the end of the first sentence and do a put -- "p".  Chaos
results!  Has anyone seen this before?  Is there a fix for it?  This
was done with version 3.7 of vi.  If wm is set to zero, this works
properly.

Note: The text being yanked affects what happens when the put command
is given.  When I first encountered this problem, some lines in the
file were deleted!  Note also that the undo command won't undo the
damage done.

----------------------test file---------------------------------
This is a test line which is almost as long as the screen width.


This is a string which will be appended.
----------------------test file---------------------------------
-- 
Rick Zaccone                   Pennsylvania State University
CSNET: zaccone at penn-state      BITNET: zaccone at psuvax1
UUCP:  {akgua,allegra,burdvax,ihnp4}!psuvax1!zaccone



More information about the Comp.unix.wizards mailing list