9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@coraid.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] Really basic acme Edit question
Date: Sun, 22 Oct 2006 10:38:19 -0400	[thread overview]
Message-ID: <274d8b15073b2e13602ce4120fad0dd7@coraid.com> (raw)
In-Reply-To: <36f49ef93ce42441951ca5dccc0194b2@plan9.jp>

edit applies to the current seoection, so if you want to do a global search and replace you need

	Edit ,s:foo:bar:g

you don't need SREs for something like this.

- erik
'
On Sun Oct 22 01:20:27 EDT 2006, chesky@plan9.jp wrote:
> What are the steps to use the Edit command?  I’ve been trying something really simple—changing every occurence of ‘foo’ to ‘bar’— and can’t seem to make it work.  I have some variation of
> 	Edit s/foo/bar/
> in the window’s tag, middle-select the whole thing, and get an error message saying “Edit: no substitution”.  And this is after reading the manuals and /sys/doc/ papers on both acme and sam; I just don’t get it. ☹


  parent reply	other threads:[~2006-10-22 14:38 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-22  5:08 Joel chesky Salomon
2006-10-22  5:27 ` andrey mirtchovski
2006-10-22 14:38 ` erik quanstrom [this message]
2006-10-22 19:00   ` Joel Salomon
2006-10-22 19:29     ` Russ Cox
2006-10-22  5:37 Joel chesky Salomon
2006-10-22  7:47 ` Skip Tavakkolian
2006-10-22 13:44   ` Joel Salomon

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=274d8b15073b2e13602ce4120fad0dd7@coraid.com \
    --to=quanstro@coraid.com \
    --cc=9fans@cse.psu.edu \
    /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).