by russellbeattie · 2y ago · 0 comments
For years (decades!) I never understood the purpose of line editors and why VI was such an improvement. Until one day I saw the pic of Gates and Allen and suddenly realized why, and how it worked. You already had a printout of your code (or text) in front of you. If you wanted to edit the text, you used a line editor to rewrite the line it was on. After a while you could print the whole thing again if you needed.
And this is why my TRS-80's BASIC editor worked the same way. It was just like the original time-share version from Dartmouth ported to a microcomputer.
1. https://www.charterworld.com/news/wp-content/uploads/2018/10...
2. http://www.columbia.edu/cu/computinghistory/teletype/ken-and...
I imagine that the code editing experience for blind people might be somewhat comparable to using line-editors? Although especially with hard copy terminals you don't need to keep everything in your head
Line editors prevailed for a long time, not because of user preferences but because they were tiny and was shipped by default. In PC-DOS/MS-DOS edlin.com/exe was what was available until the full screen editor edit.exe shipped some years into the 90s. Almost all home computers came with a variant of BASIC in ROM, which also used line editing (not even with a proper editor but by substitution of whole lines).
It's pretty easy to get used to line editors, you get used to using the search command to position the cursor on the correct line and change command to modify it. Some friendly line editors include DEC's EDI and EDT (PDP-11) and E (Motorola Exorciser).
UNIX ed is nice in that it has has regex support, but I don't like its side effects- that p, l and i change the cursor line.
I had no use for edlin since screen editors were available on the IBM PC.
I tried but never got used to TECO: this is like a screen editor, but no screen: meaning the cursor could be anywhere in the file, including in the middle of a line and it's up to you remember where it is. Some TECOs had a screen mode where it would show you the buffer and cursor position in one window, but accepted normal TECO commands in a separate command window ("TVI" on TOPS-20 worked like this, EMACS was a TECO extension).
Here's an archive link instead: https://web.archive.org/web/20240226112837/http://www.columb...
That's probably also part of why when you used line numbers in early BASIC, you left plenty of numerical gaps, so you didn't have to re-print as often.
> The first time I saw how passionate Paul could get about something, I was in 8th grade. This picture might make you think he was my teacher, but he was actually a sophomore, just a little less than three years older than me.
> This teletype is the thing that brought us together. Our school, Lakeside, held a rummage sale and used the proceeds to buy a teletype terminal. We were obsessed with it. The problem was, it was really expensive to use – 40 dollars an hour! The only way for us to get computer time was by exploiting a bug in the system.
1. https://www.gatesnotes.com/Forbes-Philanthropy-Summit-honors...