22 comments

[ 2.6 ms ] story [ 51.3 ms ] thread
Surely not. Ed is diabolically horrible, it was the worst feature of CP/M. It could only be liked by someone who edits assembler in his/her head, obviously Garry Kildall fitted that mold.
Honestly, I really do love it. I've used plenty of other editors on CP/M and now that I've got used to ED I just don't find them as quick or often as powerful as ED. That doesn't mean that they don't have extra features that can be useful, but considering how little I use those extra features I think ED comes out in front for me. I think the accompanying video demonstrates quite well how easy it is to use.
You should upgrade to vi :)
It's funny that you should say that because VI/VIM, another modal editor, is my editor of choice on Linux, with JSTAR second.

However, lately I've been thinking of writing a modal editor for Linux based on CP/M's ED. I know there is ED and EX on Linux but I prefer ED on CP/M and have been wondering where I could take that idea and possibly replace some of my use of VIM.

Why do you prefer ED on CPM to that on UNIX/Linux?
I think it's generally cleaner, more elegant and the combining of commands on a line is easier. I love that you can create macros such as:

  MNCPM^Z0TT6Z-3DICP/M^Z
This will go through a file bigger than memory, display each line containing 'CPM', pause and then replace it with 'CP/M'.

However, there are things I like in ED/EX such as the regular expressions.

Right, thanks for that. I've not used either in a while and when I did there was a long separation between using one then the other so it's a bit lost to memory (same for Vim).

Despite my earlier criticism of ED, I've always liked CP/M's command line structure and switch parameters. For example, here's one I think I remember: PIP B:=A: [V O] (I hope that's right, it's been a long time.)

I wonder if that elogence is Kildall's work, as I've never been sure whether GK just took the PDP/DEC command stuff verbatim or whether he altered some items.

"Really, they serve totally different functions."

Technically yes, but thousands of programs were written in them. I can only say that I wasn't the only one who didn't like it (and I had every reason to love it as even at home I had a fully equipped GodBout/CompuPro dual proc 8085/86 S100 system running CP/M and CP/M86 which was pretty much the king of CP/M systems. (Incidentally, I used to edit the HMXBIOS assembler code for that in WordStar in non document mode. For me it was a dream to used compared with. ED.

Even my resident assembler guru who considered any high level language you'd name too wasteful of CPU cycles, would send a file from a serial port on the CP/M machine to his Intel development system and edit it there then send it back again rather than using ED.

I've seen this dichotomy many times amongst programmers and I've come to the conclusion that it has to do with the ergonomics of the way people think and work.

Perhaps the reason you love it is because you've spend a great amount of time using it to the extent that its use has become completely automatic to you.

If you read my other post above you'll note that I use many editors and that constantly swapping from one to another is a bit of a pain.

When I was using CP/M, almost from the outset I had three editors at my disposal, specifically Ed, WordMaster and WordStar. Of the three, it was generally accepted that WordMaster was the easiest for a novice to learn. WordStar was harder to learn but much more powerful. Thus Ed was reserved for when setting up a CP/M system as it came on the 8" floppy along with CP/M. On the other hand WM and WS were third party products and came on a separate floppy. If they'd been always available then I don't think Ed would have been used at all.

Ed always had the reputation of being a bit of a PIA and no one wanted to use it if the other two editors were available. It was always looked upon as being primitive by comparison.

As WS was more powerful and flexible, Ed was thus confined to editing when only CP/M files were available. Today, that comparison would be like comparing Notepad with say UltraEdit, which, incidentally, is my current text-based editor of choice (it having both Windows and Linux versions).

But to be fair, ED is an actual editor, and incrediably useful in CP/M for quick fixes, edits and various other things. WordMaster and WordStar are word processors. Really, they serve totally different functions.

(I love ED too btw)

Love is love. And hate of the diabolically horrible Ed is something you and I share.
All is that my mother wrote her memoirs on an Amstrad and the pages came flying out. When the machine finally broke an she was compelled to buy a PC with Word to complete the book she faltered. The wysiwyg did nothing for her.

Could have been a matter of older age but I remember the same happened to data input operators at work that switched from DOS applications to mouse based programs. Productivity plummeted.

>"All is that " = "All I know is that". Dyslexia regarding my own writing sometimes.
I understand that. I've used dozens of editors, MS Word, LibreOffice, UltraEdit, Vim, etc., however my most productive editor was WordStar. Once you got the hang of the WS diamond it was magic.

Most people who used WS loved it, and they only traded it under duress for say WordPerfect.

I still have hundreds of files in WS format and from time to time I've imported some into MS Word in the days when it had a WS importer but now I no longer bother. The reason is that I now have WordStar 7 running under emulation on Windows 7.

It's strangely familiar to be editing with WordStar on Windows these days but it still has its advantages. If one uses dozens of different programs like I do, one finds it's often difficult to remember where some particular feature is in the menus from one program to another. For instance, I use MS Word to about the same extent as I do LibreOffice and I'm forever annoyed that they don't have the same menu/command structure as it wastes time constantly switching one's mind around.

This is particularly annoying when simultaneously using Windows machines side by side with Linux ones. On Windows one's using Office, and on Linux LibreOffice.

Using a command line editor like WordStar solves this because one automatically knows where all the Ctrl keys are.

Sometimes when I'm trying to get thoughts into text quickly I'll bash them out in WordStar then if necessary I'll pretty them up in Office or LibO.

Your mother was absolutely right, command line wordprocessors are great for quick entry and when you don't want your train of thought distracted by mucking about with formatting, etc.

WordStar was wonderfully logical this way.

Incidentally, I remember years ago in the 1980s at a software trade show where MicroPro was exhibiting its new WordStar 2000, talking - almost arguing - with Seymour Rubenstein (the owner of WS), that the new, supposedly simpler but quite different, command structure in WordStar 2000 wouldn't take off and be popular, as all old WS users wouldn't want to relearn new commands for ones that were perfectly OK and that it would have to compete with established WordPerfect and the new kid on the block MS Word. Turned out that I was right, WS 2000 died long before its older sibling did. This is a classic example of how not to tamper with or upgrade a perfectly good product.

Exactly. At the risk of being dated; it's a boon to remember the good ol' days :-)
Right :-). Things were both fun and simpler then before big boys with big money mucked it all up.
I'm sympathetic to this constant refrain (and share similar fond memories) but in general all those machines and systems are still available and usable.

Just like that Polish mechanic who was still in the 21st Century using his custom coded C64 program for wheel balancing, how many of us who pine for the good old days still wish to live in them? I argue we still in fact have that choice - don't we?

(comment deleted)
We have Ed on ICL mainframe and those that can master those commands are like god to me. Just impossible to understand.
My comments earlier were about CP/M's Ed. I've not used Ed on an ICL but presumably it's the same as the usual UNIX version.

What's the problem getting people to understand the commands? Is it that these days everyone is bought up on GUI pull-downs and that no one's prepared to take the time to learn them? Or perhaps part of it is that what I mentioned, there's too many different editors around and most will prefer ones without seemingly difficult/cryptic commands?

To me, learning commands/keyboard shortcuts is always preferable to just menu operation.

(comment deleted)