Re:Actually using ed (2012)
by ezequiel-garzon on Tuesday December 06, 2016 @04:29PM
(#13118488)
Thanks for sharing! I should admit I don't do any professional work with text editors (hopefully some day!), and if I ever do ed will likely not be my main editor. Just so you know, you can use most non-blank characters for substitutions. Personally I tend to use commas, as somebody else mention in the comments. If I see commas in the expression I'm about to replace I go for slashes or pipes.
It's interesting you mention inconsistencies across implementations, even more (I assume) going from BSD to GNU ed which unsurprisingly is almost a superset of features with heretical commands such as yank (!).
BSD tends to stick more to POSIX, so issuing just `t` won't duplicate the current line, which I've grown used to. I also like the paging command `z`, which seems to have been adopted by all major implementations. I'm sure Ken would find all of this bloatware!
It's interesting you mention inconsistencies across implementations, even more (I assume) going from BSD to GNU ed which unsurprisingly is almost a superset of features with heretical commands such as yank (!).
BSD tends to stick more to POSIX, so issuing just `t` won't duplicate the current line, which I've grown used to. I also like the paging command `z`, which seems to have been adopted by all major implementations. I'm sure Ken would find all of this bloatware!