A tutorial for the sam command language (1986) [pdf]
doc.cat-v.org
doc.cat-v.org
https://github.com/deadpixi/sam
Alternatively, the vis editor combines sam's command language with a vim-style modal interface that runs in the terminal, and is therefore even more portable:
And having mentioned Kakoune it’d probably be unfair to then not point out Helix[2]. It has a very similar editing language, but it’s a fairly anti-Unix everything-bolted-in affair on the inside (“everything works out of the box” being the advertising take) compared to Kakoune’s Acme-inspired no-scripting scripting (there’s an ex-style command to exec a user program that can then drive the editor over stdio RPC, a set of hooks, and that’s it). So if you’ve come for the Plan 9 feels, I don’t expect Helix to be that appealing. It’s still an excellent editor, nevertheless.
In case anyone wants to try sam or acme on Plan9 without having to install the system.
http://www.polarhome.com/service/man/?qf=sam&tf=2&of=HP-UX&s...
"Plan 9 from User Space" has its own ssam command, whose implementation is basically the same, except as an rc script instead of a shell script.
I don't know if there's an actually-streaming sam implementation anywhere.