From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13614 invoked from network); 5 Nov 2022 09:30:09 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 5 Nov 2022 09:30:09 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 8414B41DE2; Sat, 5 Nov 2022 19:29:55 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuhs.org; s=dkim; t=1667640595; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=auL+VLHCuPRk9ucd6HB6SFRxJ0YDJ39SIDsrunwIZ2c=; b=L8Uacmqy9KTT3H1rCA3iUz6Qg7Mrw+G5Z8j2GSPITdEiks1MsuYrqd/CBaC4qiWlM1ZxTn p3hXK7n5J3zuvyYjkfATVK+pRJazWecdwO3P4jpMRI0Qm6SJvnkC8OEEdZKJ21LCPdIFxn llnUsyGkQxuO6WkGw9fJjTCSEOcsoIM= Received: from out2.migadu.com (out2.migadu.com [188.165.223.204]) by minnie.tuhs.org (Postfix) with ESMTPS id C986341DDE for ; Sat, 5 Nov 2022 19:29:46 +1000 (AEST) Date: Sat, 5 Nov 2022 10:29:42 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=drijf.net; s=key1; t=1667640584; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=auL+VLHCuPRk9ucd6HB6SFRxJ0YDJ39SIDsrunwIZ2c=; b=MEnux6KBJyLGFzIykSM7Sta2KiK9omQW9B+PZpTjFnzuuyJjau0d1x/6P+lYh59g0FjiUX GiiK6iBDtQpO6sw5m5hPKNPKQRSrk/WFnavPfsk/PyuwxSXWJaZHFXtSQEU3AjHeeJ26Pa 58/JRraWAFfzP3FeqtqVSe6v08XClhPO4fAZjcvZjpxJASD4clca4hdVBQthP2MxVH67/y cL5kwdC0QiCsqFYIo8PDgkMKl5Dq6Dp0MYUGHguTRgsQcpju8MBPOTepeCGEAS15OhkZM6 JZg6/IvROX+KeTWWt1sMgu9tUvslnb8E7oCOrtBuAJukcy8BmaRrtlHfwTAjnQ== X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. To: Larry McVoy Message-ID: References: <7b249e68-de74-2c81-32b0-18ecb74a85ec@aueb.gr> <20221105010247.GG29525@mcvoy.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20221105010247.GG29525@mcvoy.com> X-Migadu-Flow: FLOW_OUT Message-ID-Hash: 2XKMHEZ2NTGGJPMXOB5XKGUKOMM3GPRK X-Message-ID-Hash: 2XKMHEZ2NTGGJPMXOB5XKGUKOMM3GPRK X-MailFrom: otto@drijf.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: vi in cooked mode? List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Otto Moerbeek via TUHS Reply-To: Otto Moerbeek X-Spam: Yes On Fri, Nov 04, 2022 at 06:02:47PM -0700, Larry McVoy wrote: > On Sat, Nov 05, 2022 at 11:45:26AM +1100, Dave Horsfall wrote: > > A boss of mine insisted that everyone had to learned "ed", because afte= r a=20 > > system crash it might be the only editor available; that, or having to= =20 > > dial in over a slow modem. >=20 > Same. Though vi in ex mode was also good. Yep, the computer lab I had to use had 30 or so terminals connected to a VAX 11/750 running BSD. To get work done it was often neccesary to switch to ex mode in vi. Later I was a teacher's assistent with night access to the lab and I could use it on my own or with only a few fellow TA's. -Otto >=20 > I also got a little corrupted by whatever editor came with BDS C, my=20 > .exrc looks like this: >=20 >=20 > map # :.,$ > map @ :1,. >=20 > Those came from that editor, # says do whatever to the end of the file, > @ says do whatever from the top of the file to here. >=20 > map , !}fmt >=20 > This came from Udi Manber, , runs your paragraph through fmt >=20 > map! =01 =14 >=20 > I set shiftwidth to 4 spaces because when you have code like >=20 > if ((this big thing =3D=3D that big thing) && (this other big thing) && > (yet another big thing)) { >=20 > I use 4 spaces for what I call the continuation line. I used ^A to write > that example, why I don't like ^T is lost to me. >=20 > And yeah, I paren stuff that doesn't need to have parens, it just makes > the code more obvious. >=20 > set redraw ai aw terse=20 >=20 > redraw I think is left over from modems, autoident because duh,=20 > autowrite because who doesn't hack, hack, hack, ^Z, !cc? terse > because I'm not a newbie. >=20 > set sections=3DuhshSHNH > set paragraphs=3DPSPETSTEFSFEKSKECSCERSREDSDEIPNPLPPPTLABAIAELIB1B2HH >=20 > Troff. >=20 > set ts=3D8 sw=3D4 > set shell=3D/bin/sh > set showmode > set textwidth=3D1000 > set vb >=20 > Etc. >=20 > I've been carrying around that .exrc for around 40 years. Sheesh, I'm ol= d.