________________________________________________________________________________ I haven't written anything for a while now again. Been busy working on actual stuff. Been busy with family commitments. There's a saying in my country that the cow which gives the least milk moo's the loudest. Well, I don't know if I've been productive, to use this overused word, but I just did not want to go out of the 'doing' mode into the 'narration' mode, if I may distinguish them like this. Anyway, all that I just now said was meta-writting and not actual writting of substance. Kind of ironic. Fun, frivolous fact: I am writing this using the ED editor, which I actually just picked up now, first having heard of it from some old school Italian guy. It actually isn't as hard as it might appear. Let's check... I had to save the file and cat it to see if it actually appears on the page as I imagined. And to my joy it did. It's not that I put in a lot of effort. It's just that I've been using Vim for a while now and in another terminal I opened up cht.sh with ed instruction. So I think about 10 minutes is enough to feel ok to write a simple text file like this. And that shows that it is quite intuitive if you've been using VI or VIM for a while. I would not want to write more serious stuff in this where I'm constantly redoing stuff and jumping up and down. But I'm 10 minutes into it. Here's how it goes: ed newfile.txt -- you get a message that there's no such file. That's alright. You continue as you're now inside the buffer. It doesn't look like it, there's no prompt or anything. Broken? you then press a (add) and enter and write your text on the line. Then you get to where you want a new line and press enter and you'd do on any editor. Want an empty line? Just do it normally with enter. When you're finished with it writte . on a new line. Then w on another line (for writte). You want to quit? Press q on a new line after writting. In short it looks like this: a < your supper important text here > < more stuff, as nature abhors vacuum > < empty line if you want > (here you put only . but I'm not sure if I can escape it for example's sake) (here w to save this precious material) (here you can do q if you want to finish or just wq) You then get a number like 674 or whatever which shows how many bites written. Easy stuff. Now to move stuff around, edit, etc, is a bit more involved but it's basically either substitution like s/foo/bar of single word or whole phrases or even globally with something like ,s/foo/bar/g. During writting I finished too early on some line and so i did s/last-word./last word. continuation. Want to insert a line above a line 10? Do 10i enter and then your line. Want to append bellow a line? Do 10a enter and your text. You just to line with numbers. 22 and enter and your on that line. Want to know the line numbers? Do ,n and you get entire buffer printed with line numbers. Then you can jump to it or append or insert above. Want to change entire line? 22c and your changing that line. Want to do multiple 22,25c. The same for delete. You can also delete by pattern. /foo/d and bye bye line. Or how about the ever useful 1,$d to delete your sorry note that should never have seen the light of day? Then press ,p to print the whole file (without numbers) or ,n for numbers. Of course the old friend search also works as expected: /search term Well, I think that can get you pretty far. I made a deal with myself that I will stick to plain text files whenever I can. I also decided that I will try to use ED exclusively to edit this gopher hole because this place feels so old school and I just think it's cool to writte here with old school editor. My vanity. Bye. P.S. don't forget to press w on new line and q on another! w w q I think I screwed up :) P.S.S I did not know how to make the lines in the text not exceed 80 characters in width and make them nice and tidy. I tired looking for a solution quickly but couldn't so I ended up doing the final edit in Vim where I have a handy shortcut of leader j to make everything selected not exceed 80 characters. No one said ED was the most convenient game in town. Maybe with time and with great knowledge of sed and akw and some scripts and aliases you could develop a way of extending ED to do some of the things you want in your own writting. Actually there's a primitive way around this! Have a file called rule.txt which is just a single line of 80 consecutive _ that you can cat into a new file you'll be working on. Then you just look at that line for reference. Primitive, yes. Works? I guess so. Anyway, I will continue using ED here. ________________________________________________________________________________ So now I have two rulers, on top and bottom. I appended to the top in ED with $t0 which means transfer (copy) last line to the top (above the previous 1. Still primitive but sufficient for me. And I learned more about ED just like that. So new commands: 10m20 moves line 10 to line 20. 10t20 makes a copy of it. Use 0 for the very top and $ for the very end. The end of postscriptum.