why does vi insist on deleting to big chunks of my precious code???

Conor P. Cahill cpcahil at virtech.uucp
Fri Sep 7 22:12:14 AEST 1990


In article <1990Sep7.033215.22324 at hades.ausonics.oz.au> greyham at hades.ausonics.oz.au (Greyham Stoney) writes:
>I have an intermittent problem with 'vi' under 386/ix 2.0.2, where vi will
>suddenly decide to delete every precious handcrafted character in my file
>from the cursor right down to EOF. It then deliberately and maliciously
>leaves me in insert mode so that doing an "undo" wont get it back.

This isn't a problem with vi.  What is happening is that you are typing the
sequence for delete-to-end-of-file.

I would bet that you are using a wyse terminal (or something else emulating
a wyse).  The wyse key for delete-to-end-of-file is usually defined in 
terminfo as ESC-y.  If you are editing some data hit the esc key to end the
edit session and then type the y key to yank a line --- POOF --- there goes
the rest  of you file.

My solution is to modify the terminfo entry for whatever terminal type you
are using.  Remove the sequence for delete-to-end-of-file.



-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.questions mailing list