@mntmn will it run ed?
@netbsd *angry goose meme* what is the _standard_ editor? What's the standard editor, NetBSD?
@nantucketlit @hyde @thorstenzoeller @amin @eclecticpassions @birming @gumnos @ed1conf
It's a lot more usable than you'd think, particularly nvi.
#ed as a main editor does take a bit of mental prep, but it's mostly quite usable. ;)
I don't even miss #vim's column select mode. It's quite easy to implement with basic substitutions. ;)
@rl_dane @hyde @amin @eclecticpassions @nantucketlit @birming #NoVIMber, like a whole month of just using ed?
In case you happen to find yourself editing a shell-script inside ed(1) and want to run it from within ed, you can use
!%
or if it takes arguments
!% -zf
Huge Font/Small Screen Challenge:
Open a terminal with a ridiculous font-size that results in a tiny number of columns/rows, ideally 40x25 or less, e.g.
$ xterm -fa 'xft:JetBrains Mono' -fs 42
(maximize the window)
$ echo $COLUMNS $LINES
40 10
and attempt to use your preferred $EDITOR/$VISUAL.
How readily can you edit text?
@dougmerritt I went the other direction: learned sed first and only later discovered there was an interactive version of sed (that is, ed). @ed1conf
Advanced Programming in the #UNIX Environment
Week 5: ed(1) is the standard text editor
What? You thought we could skip ed(1)? No way! It's the standard text editor. ed man! !man ed
But understanding ed(1) also helps us understand other tools like vi(1), sed(1), and ultimately even things like diff(1) and patch(1) better.
Reading over @mwichary's excellent blog post about differences between Windows and Mac keyboards makes me appreciate ed(1) all the more. No need to worry whether you have Control or Alt or Windows/Logo/Mod4 or Meta or Fn modifiers or how they're named. No worries about arrow-keys or Home/End or Pgup/Pgdn or F1–F12 keys.
Just you, your text, and some 7-bit printable-ASCII commands supported by just about every computer¹
⸻
¹ okay, some like the Apple II had uppercase-only and were non-ASCII
Gonna see how far I can get using #ed to write toots sometimes.
So somebody created a notebook that lets you run Markdown code-blocks
If you want to run a backtick-delimited block of Markdown in ed(1) that your cursor is on:
?`?+,//-w ! command
And if it's a block of four-space-indent surrounded by empty lines, you can do similarly with
?^$?+,//-w ! sed 's/^ //' | command
(you can skip the sed invocation if the program happily ignores leading whitespace)
If you want to run one of those blocks on a remote server, you can use ssh for that:
?^$?+,//-w ! sed 's/^ //' | ssh me@remote "command"
The terminal before the terminal. #TeleType #TeleTypeWriter #UNIX
The premier conference for ed(1), the standard text editor. Accessible at 300 baud.
Pronouns: it/its