vi bug?

Ron Stanonik stanonik at nprdc.arpa
Thu Nov 20 03:40:14 AEST 1986


One of our users pointed out a problem with vi (we're running
4.2bsd on a vax 780, but the problem seems to also occur on
suns running release 3 and ats running ibm xenix 2.0).  His
note is pretty clear.  Any fixes/ideas?
Thanks,
Ron Stanonik
stanonik at nprdc.arpa

From: trejo (Len Trejo)
Date: 18 November 1986 0844-PST (Tuesday)
To: stanonik
Subject: A problem with vi

This is a file that will serve to demonstrate a problem I'm having
with the vi editor.  The problem is a failure of vi to properly "put"
a large (half a line or so) chunk of text into another line when
two conditions exist: 1) The wrapmargin is set to some non-zero value
(i.e. 5 or 10); 2) The put is done near the end of the line (i.e., the
inserted text will cross the wrapmargin).  Here is a prescription to
demonstrate the problem.  Down below is some text to be yanked and
then put elsewhere.  First, set the wrapmargin from command mode by
typing ':se wm=10'.  Then yank the text below and put it at the target
location on this line, which is marked with a capital t:  .........T
You can do this by moving the cursor to the text below and typing 'y$'
from command mode then moving the cursor to the target location (T)
and typing 'P' from command mode.  When I do this the "put" loses many
characters and then opens a new line below the target line and puts
some text there.  It's really very messy because it can't be
completely undone with the 'undo' command.  Please let me know if this
occurs for you also.

Len



More information about the Comp.unix.wizards mailing list