Xref: utzoo comp.unix.questions:25321 comp.unix.sysv386:175 Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.unix.questions,comp.unix.sysv386 Subject: Re: why does vi insist on deleting to big chunks of my precious code??? Message-ID: <1990Sep07.121214.3745@virtech.uucp> Date: 7 Sep 90 12:12:14 GMT References: <1990Sep7.033215.22324@hades.ausonics.oz.au> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 24 In article <1990Sep7.033215.22324@hades.ausonics.oz.au> greyham@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