ed(1) conference

1.8K Followers
2 Following
4.8K Posts
The premier conference for ed(1), the standard text editor. Accessible at 300 baud.
Pronouns: it/its
Pronounsit/they
ed(1)the standard text editor

Reading @mwl's #EdMastery and taking notes in VSCode:

ka -- set a mark "a," equivalent to vi ma *,n 1 = -- display the number of lines in the file 2 .= -- display the current line number 3 ; -- same as .,$ 4 -,+p -- display the current line with a single line of context before and after 5 z3 -- display the current line and three more 6 2z2n -- display line 2 and two more, with line numbers 7 ka -- set a mark "a," equivalent to vi ma 8 'a,'bn -- print lines with line numbers between marks "a" and "b" *1,3s/-- /--/ *,n 1 = -- display the number of lines in the file 2 .= -- display the current line number 3 ; -- same as .,$ 4 -,+p -- display the current line with a single line of context before and after 5 z3 -- display the current line and three more 6 2z2n -- display line 2 and two more, with line numbers 7 ka -- set a mark "a," equivalent to vi ma 8 'a,'bn -- print lines with line numbers between marks "a" and "b" *w 415 *

Did I say VSCode? psyche!! I meant #ed, of course! 🤣

@oclsc
Thanks for your pedantry :flan_grin:
@dougmerritt Modern ed(1) certainly does, though I'm uncertain about initial versions. @oclsc might have insight here

@johndcook

The number is there to make the name stand out, not to disambiguate anything.

that'd be the manual-page section.

1) General Commands

2) System Calls

3) Library Functions

4) Kernel Interfaces

5) File Formats

6) Games

7) Miscellaneous Information

8) System Manager's Manual

9) Kernel Developer's Manual

So ed, being a general command is in section 1, whereas wump(6) is a game, fstab(5) is a file-format, and httpd(8) is for system-managers. Which can be used to disambiguate, such as

$ man 1 printf # the system utility

$ man 3 printf # the C function

$ man 9 printf # the kernel function

10 patterns in modern Linux tools that trace back to ed(1)

https://www.johndcook.com/blog/2026/06/04/the-latin-of-linux/

Common patterns in Linux tools that go back to ed(1)

The line editor ed(1) is sort of the Latin of Linux, the ancestor language that initiated patterns that live on in many modern tools and languages.

John D. Cook | Applied Mathematics Consulting

In my faffing about with text editors, I ran into something kind of funny:

So, there's not a straightforward way to install vi (not vim) on termux. There is, however, a copy of ed in the base install.

And so I started poking at it. Amusingly, it turns out to be a surprisingly decent editor for the constraint that is grumpily poking at a piece of glass with my thumbs.

I'm sure @ed1conf will be delighted.

#vi #nvi #ed #plaintext

It took me learning #ed to *truly* understand the meaning of "g/re/p." — #microblogging #MicroToot:       72 characters

@PeterLudemann

If you desperately need it, there's cpwrap(1) for Copilot in ed(1)

@dabeaz

GitHub - MarkMendell/cpwrap: get copilot suggestions for any interactive program (rlwrap for copilot)

get copilot suggestions for any interactive program (rlwrap for copilot) - MarkMendell/cpwrap

GitHub