| PLEX86 | ||
creat 1191snip Or something like that. I'd call it a new story, somewhat encapsulating the old story, with a moral about how opinions based on zero, or close-to-zero, knowledge are fun but not particularly valid. creat 1192 I can't tell you. I'd have to "see" the whole file. Diags were a real PITA to edit because each code page was... snip Which with Windows seems to be difficult, or at least frowned on. It's one of the things I don't like about the platform. (Of course, this is another opinion based on close-to-zero actual knowledge. :-)? ) snip Okay, but if you count the strokes needed to position to the right spot, how many characters would be needed to do this job in TECO? Well .... But in your example, it seems to me that most of the keystrokes are used to find the proper position. So this doesn't seem to be about inserting text so much as positioning. creat 1193 Interesting. Okay. It seems to me that with a screen-oriented editor you could still be sort of paging through the file, and the number of keystrokes to find the next occurrence of some... If we're talking about replacing part of a line -- yeah, I don't remember a short way to do this in ex or ed. Replacing a whole line is easier -- delete the old line, insert a new one. Once you find the right line, not many keystrokes involved (in ex: "d" to delete current line, "i" to start inserting new line(s), "." to end insertion). If we're talking about inserting text into the middle of a line .... Say you wanted to insert "abcdef" after "hello" in the current line. You could type "s-hello-&abcdef-". Not wonderful, but not horrible, IMO. I guess what would be better, and that maybe TECO could do?, would be the ability to position a cursor within a line, and then insert at the cursor position? I find myself wondering whether you'd like vi. Ever tried that one? -- B. L. Mbuttingill ObDisclaimer: I don't speak for my employers; they return the favor.
|
||||