9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] command repetition in sam/acme
Date: Tue,  3 Mar 2009 19:50:14 +0100	[thread overview]
Message-ID: <a560a5d00903031050s56cc90b4rf72e348610e164f@mail.gmail.com> (raw)
In-Reply-To: <5d375e920903030916s7b4572dfu51e4dab710412d0b@mail.gmail.com>

> Using a text editor to manipulate files with lines that are thousands
> of words long seems like a not very good idea to me.

1st : I don't see why. I had a feeling there was some tendency (at
least R Pike could have one) not to look at a file as on a list of
lines, but as on a linear stream of bytes. I find it really
frustrating when I see comments, like above, that eg. sed has problems
with 'too-long' lines.

2nd: as long as you communicate with people who use common measuring
instruments, you just have to edit such files. They are plain-text
files but have long lines. That doesn't mean they are extraordinarily
big; they may have only a few lines. And moreover, the structure of
those file is sensible.

3rd: awk might be a good instrument (although eg. Raymond argues it is
flawed) for analysis carried out automatically by machines, but it is,
for me, not an editor for manual, human, interactive work.

In the light of aforementioned: vim's ability to work in the nowrap
mode and the ability to repeat commands (or regexps) [and I could add
also the existence of column blocks] makes it superior to both
acme/sam when editing considered files. As usually, this is the tax
for sam/acme's simplicity. And, understand, I am for simple things. I
somehow can understand why sam and acme don't have the nowrap mode
and, followingly, the column blocks. It is, as far as I know, due to
the stream-like character of sam/acme's view on files. What I can't
understand is, why I can't repeat my commands / regexps. One of these
would be right enough to easily do my task and many more. Correct me
if I am wrong, but even the simplest regexps used in linux can have a
number denoting repetition. Why plan9's regexp(7) doesn't have it?

Thanks
Ruda



  reply	other threads:[~2009-03-03 18:50 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 12:07 Rudolf Sykora
2009-03-03 12:49 ` Steve Simon
2009-03-03 13:53   ` Rudolf Sykora
2009-03-03 15:40     ` roger peppe
2009-03-03 15:58       ` yy
2009-03-03 16:25         ` Rudolf Sykora
2009-03-03 15:58       ` Uriel
2009-03-03 15:59         ` Uriel
2009-03-03 14:15 ` John Stalker
2009-03-03 14:23   ` Rudolf Sykora
2009-03-03 16:09 ` Russ Cox
2009-03-03 16:31   ` roger peppe
2009-03-03 17:16     ` Uriel
2009-03-03 18:50       ` Rudolf Sykora [this message]
2009-03-03 16:39   ` Rudolf Sykora
2009-03-03 20:30   ` Arvindh Rajesh Tamilmani
2009-03-03 22:13     ` ron minnich
2009-03-03 23:19       ` J.R. Mauro
2009-03-03 23:37       ` Anthony Sorace
2009-03-04  0:31         ` Rob Pike
2009-03-04  0:44           ` J.R. Mauro
2009-03-04  0:56             ` Rob Pike
2009-03-04  1:51               ` J.R. Mauro
2009-03-04  2:15                 ` Rob Pike
2009-03-04  4:59                   ` J.R. Mauro
2009-03-04  9:41           ` Rudolf Sykora
2009-03-04  9:52             ` Rob Pike
2009-03-04 11:32               ` Rudolf Sykora
2009-03-04 13:31                 ` Uriel
2009-03-04 13:41                   ` Rudolf Sykora
2009-03-04 16:35                   ` John Stalker
2009-03-04 16:56                     ` ron minnich
2009-03-04 13:37             ` erik quanstrom
2009-03-04 14:14               ` Rudolf Sykora
2009-03-04 14:37                 ` erik quanstrom
2009-03-04 14:59                   ` Rudolf Sykora
2009-03-04 16:34                 ` Steve Simon
2009-03-04 17:03             ` Russ Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a560a5d00903031050s56cc90b4rf72e348610e164f@mail.gmail.com \
    --to=rudolf.sykora@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).