Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.08 10/3/83; site psuvax1.UUCP Path: utzoo!linus!decvax!mcnc!akgua!psuvax1!zaccone From: zaccone@psuvax1.UUCP (Rick Zaccone) Newsgroups: net.bugs.4bsd,net.unix-wizards Subject: Problem with vi and wrapmargin Message-ID: <1088@psuvax1.UUCP> Date: Wed, 27-Jun-84 18:09:19 EDT Article-I.D.: psuvax1.1088 Posted: Wed Jun 27 18:09:19 1984 Date-Received: Sat, 30-Jun-84 07:19:27 EDT Distribution: net Organization: Pennsylvania State Univ. Lines: 25 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@penn-state BITNET: zaccone@psuvax1 UUCP: {akgua,allegra,burdvax,ihnp4}!psuvax1!zaccone