9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Acme question?
@ 2007-05-22 17:48 ISHWAR RATTAN
  2007-05-22 17:57 ` Paul Lalonde
  0 siblings, 1 reply; 4+ messages in thread
From: ISHWAR RATTAN @ 2007-05-22 17:48 UTC (permalink / raw)
  To: 9fans

If there is a file open (being edited) in acme. I
want to read-in the contents of another file
in the open file at the cursor position. How can I
achieve that?

Can a part of the open file be written out to another
file?

-ishwar



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Acme question?
  2007-05-22 17:48 [9fans] Acme question? ISHWAR RATTAN
@ 2007-05-22 17:57 ` Paul Lalonde
  2007-05-22 19:28   ` [9fans] " Darren Bane
  2007-05-23  0:45   ` [9fans] " Russ Cox
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Lalonde @ 2007-05-22 17:57 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Edit r filename
will read filename at the current selection.
Edit .w filename
will write the current selection to filename.

Paul

On May 22, 2007, at 10:48 AM, ISHWAR RATTAN wrote:

> If there is a file open (being edited) in acme. I
> want to read-in the contents of another file
> in the open file at the cursor position. How can I
> achieve that?
>
> Can a part of the open file be written out to another
> file?
>
> -ishwar
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFGUy74pJeHo/Fbu1wRAhIKAJ4oSCwAP6dp2KfjTKJC6EaZ4StgkACgtucE
y94DE4AspXyXvARuiKRT+h4=
=/ASP
-----END PGP SIGNATURE-----


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [9fans] Re: Acme question?
  2007-05-22 17:57 ` Paul Lalonde
@ 2007-05-22 19:28   ` Darren Bane
  2007-05-23  0:45   ` [9fans] " Russ Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Darren Bane @ 2007-05-22 19:28 UTC (permalink / raw)
  To: 9fans

Paul Lalonde <plalonde@telus.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Edit r filename
> will read filename at the current selection.

Or you can put "<cat filename" (without the quotes) at the insertion
point, highlight and B2 it.

!snip!
-- 
Darren Bane



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [9fans] Acme question?
  2007-05-22 17:57 ` Paul Lalonde
  2007-05-22 19:28   ` [9fans] " Darren Bane
@ 2007-05-23  0:45   ` Russ Cox
  1 sibling, 0 replies; 4+ messages in thread
From: Russ Cox @ 2007-05-23  0:45 UTC (permalink / raw)
  To: 9fans

>> If there is a file open (being edited) in acme. I
>> want to read-in the contents of another file
>> in the open file at the cursor position. How can I
>> achieve that?
>>
>> Can a part of the open file be written out to another
>> file?

another way besides the edit commands is to 
execute

<cat file

with the cursor at the location to insert.

and you can highlight the part to save
and execute

>cat>file

russ



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-05-23  0:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-22 17:48 [9fans] Acme question? ISHWAR RATTAN
2007-05-22 17:57 ` Paul Lalonde
2007-05-22 19:28   ` [9fans] " Darren Bane
2007-05-23  0:45   ` [9fans] " Russ Cox

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).