9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: John Floren <john@jfloren.net>
To: fernanbolando@mailc.net,
	Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] in ed, how to do i do this?
Date: Fri, 17 Jun 2011 08:08:53 -0700	[thread overview]
Message-ID: <BANLkTi=MPy4J2XB9nUca4gS1kYADAUjRzg@mail.gmail.com> (raw)
In-Reply-To: <BANLkTimim-mT3TKx_Hts7+k-DE93L92GWg@mail.gmail.com>

If you want to change:

"in ed, how" to "in fred, how", do something like this:

s/in ed/in fred/


John

On Fri, Jun 17, 2011 at 8:07 AM, Fernan Bolando <fernanbolando@mailc.net> wrote:
> On Fri, Jun 17, 2011 at 11:04 PM, yy <yiyu.jgl@gmail.com> wrote:
>> 2011/6/17 Fernan Bolando <fernanbolando@mailc.net>:
>>> 1. insert a character in a line? - I usually retype the whole line with .c
>>
>> s/^/c/
>
> what if I want to insert it in the middle of the line?
>
>>
>>> 2. indent a line - i usually retype the whole line.
>>
>> The same, where c == \t
>>
>>
>> --
>> - yiyus || JGL .
>>
>
>



  reply	other threads:[~2011-06-17 15:08 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-17 14:55 Fernan Bolando
2011-06-17 15:04 ` yy
2011-06-17 15:07   ` Fernan Bolando
2011-06-17 15:08     ` John Floren [this message]
2011-06-17 15:22     ` Bakul Shah
2011-06-17 15:26       ` Fernan Bolando
2011-06-17 15:27       ` dexen deVries
2011-06-17 16:18       ` Skip Tavakkolian
2011-06-17 16:31         ` dexen deVries
2011-06-17 15:11 ` dexen deVries
2011-06-17 15:17 ` dexen deVries
2011-06-17 22:38   ` Mauricio CA
2011-06-18  1:05     ` Rob Pike
2011-06-19 14:11       ` Thomas
2011-07-04  0:58         ` Josh Marshall

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='BANLkTi=MPy4J2XB9nUca4gS1kYADAUjRzg@mail.gmail.com' \
    --to=john@jfloren.net \
    --cc=9fans@9fans.net \
    --cc=fernanbolando@mailc.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).