Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!mcvax!enea!chalmers!myab!lars From: lars@myab.UUCP (lars) Newsgroups: net.unix Subject: The vi editor (was: Porting UNIX Applications to the Mac) Message-ID: <148@myab.UUCP> Date: Thu, 25-Sep-86 06:26:57 EDT Article-I.D.: myab.148 Posted: Thu Sep 25 06:26:57 1986 Date-Received: Thu, 2-Oct-86 21:03:09 EDT References: <1572@cbdkc1.UUCP> <1091@hoptoad.uucp> Reply-To: lars@myab.UUCP (lars) Organization: Myab Gothenburg, Sweden Lines: 32 In article <2866@sdcc6.ucsd.EDU> ir450@sdcc6.UUCP () writes: > >I have NEVER had ANY experience with vi removing text and doing the >wierd things that the previous posters have stated, even when I was a >beginner with vi. It has ALWAYS been the best editor I have used. I >think the reason for this is that you can use whatever level of >expertice you want. I consider myself rather experienced with the "vi" editor, but nevertheless had a really frustrating problem. Sometimes when I was editing a file, all text from current line to the end of file just disapeared. Usually I continued inserting text, and when looking up to the screen noticed what had happened. Thank God that "vi" saved deleted text in a lot of buffers. It was very hard to find out why this happened, especially because I didn't know which key sequences triggered it off. Eventually, I pinned down the problem: The text got deleted when I exited out of the insert mode, and typed a 'Y' to jank current line. In my keypad is a key called "erase page" which sends sequence "esc Y". This sequence was mapped automatically by "vi" to "dG" ! These mappable sequences is also usable in insert mode, so when I typed "esc Y" to get out of insert mode and jank current line, "vi" mapped this into "dG" and deleted the rest of my file. -- ______________________________________________________ Lars Pensjo {decvax,philabs}!mcvax!enea!chalmers!myab!lars