Monday, April 6, 2009

Flitations with /bin/ed

lately, I've been developing a strange affection for the old ed(1) text editor. Because tpsh defaults the value of EDITOR to ed on unix, and edit on windows; I've had to deal with ed quite a lot whilst working on my shells 'fc' built-in (fc is the command for listing and editing/re-executing commands through the shells history).

Of course once support for ENV was worked out, I changed it to ex >_>


atm I'm reading the ed tutorial in ed, via ssh to my OpenBSD machine; it actually makes a nice pager :-/. All in all, I don't think I would take ed over vi for coding but it's a rather interesting program; after starting vim it's also possible to drop into extended ex mode with gQ, effectively giving a modernized line editor.

My interest in ed atm is for short editing tasks, the kind where vi and other screen editors are not often necessary for the task. Some times, I can't help but wonder if I'm secretly older then my birth date suggests lol.


mmm.

No comments:

Post a Comment