Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

What this country needs is a good five cent microcomputer.


computers / comp.editors / Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

SubjectAuthor
* how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)HenHanna
+- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Janis Papanagnou
+* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
|`* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)G
| `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
|  +- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Janis Papanagnou
|  `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)G
|   `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
|    +* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)HenHanna
|    |`- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
|    `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)G
|     `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
|      `* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)G
|       +* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Janis Papanagnou
|       |`- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)G
|       `- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Lawrence D'Oliveiro
`* Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Anthony Howe
 `- Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)Janis Papanagnou

1
how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=133&group=comp.editors#133

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@dev.null (HenHanna)
Newsgroups: comp.editors
Subject: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: Sat, 2 Mar 2024 23:20:53 +0000
Organization: novaBBS
Message-ID: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="627388"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Rslight-Site: $2y$10$/1fT5tA09zMAUPupfsD0n.G7Idgcw7pZn6lA0WeEvmh4VbDRlIqqW
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Face: P#KeQ)CUdd!==@fw~Ms1=,Hb`IWtb6:Mw)x3B=H1BfNC\lz?Nb&)M9}$>?'X7l;CuB}utlJ=PHsRBSG6X>dYZ$[>P]$~+`>@V6$t}hTLoQ7XC~W\>:`B3ALU]SH;d(\MEc}znW8m}-ma&yPFkJ2@KSQrz=!Y;><;6a>z6N+mt`ClCt.PAE<o+B$qjwejZSZ,w]^;vrdl24z5(pm={l,F10qRDF
 by: HenHanna - Sat, 2 Mar 2024 23:20 UTC

it used to be so easy to Copy-Paste text between two files with Control-C, Control-V.

THEN, 2 or 3 years ago, when i started using a new ver. of Windows,
i could no longer to this.

So i've set up the following as a Work-around

:ab wt w! ~/temp.vi
:ab rt r ~/temp.vi

So i can ..

[1] from one file, do

:.wt -- write 1 line to temp file
:.,.+5 wt -- write 6 lines to temp file

[2] optionally edit the temp file ---

[3] from another file, do the following to read (in) the temp file

:rt

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us0op0$2a5nu$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=137&group=comp.editors#137

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Sun, 3 Mar 2024 03:54:22 +0100
Organization: A noiseless patient Spider
Lines: 52
Message-ID: <us0op0$2a5nu$1@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 3 Mar 2024 02:54:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="8cdc70a30fdbb72c6c35e4b33df10e5d";
logging-data="2430718"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Foi4vLOLWcCi+FIiukt3m"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:iETX9DlvaSgGBLUHjl4GFYMMVwI=
In-Reply-To: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
X-Enigmail-Draft-Status: N1110
 by: Janis Papanagnou - Sun, 3 Mar 2024 02:54 UTC

On 03.03.2024 00:20, HenHanna wrote:
> it used to be so easy to Copy-Paste text between two files with
> Control-C, Control-V.

In Vim it's Y and P while in between switching to another file
could be :n (if the file has been opened together with the first
file) or :r filename (if you want to ad hoc open a file).

>
> THEN, 2 or 3 years ago, when i started using a new ver. of Windows,
> i could no longer to this.
>
>
> So i've set up the following as a Work-around
>
> :ab wt w! ~/temp.vi
> :ab rt r ~/temp.vi
>
> So i can ..
>
> [1] from one file, do
>
> :.wt -- write 1 line to temp file
> :.,.+5 wt -- write 6 lines to temp file
>
>
> [2] optionally edit the temp file ---
>
> [3] from another file, do the following to read (in) the temp file
>
> :rt

In Vim you'd probably like to switch to a more Vim-like way of file
processing. Open more than one file when calling Vim. Or in a Vim
session use :split somefile to load another file (then you can
toggle between your split parts of the window with Ctrl-W Ctrl-W,
doing a Y on one side and P on the other side).
Another option is to copy or append the yanked parts into a named
register; for example

"AY -- appends a line to the named register A
42G -- move to another place (here e.g. to line 42)
"A6Y -- appends 6 more lines to A
^W^W -- switch to the other split-window part (^W means Ctrl-W)
-- or use :n if you want to switch to the next file opened
"Ap -- insert the contents of A

These are just examples. There's many ways you can do such things,
depending on what fits best.

Janis

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us16l2$2cbsi$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=138&group=comp.editors#138

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED.118-93-167-67.dsl.dyn.ihug.co.nz!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Sun, 3 Mar 2024 06:51:14 -0000 (UTC)
Organization: A noiseless patient Spider
Message-ID: <us16l2$2cbsi$3@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 06:51:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="118-93-167-67.dsl.dyn.ihug.co.nz:118.93.167.67";
logging-data="2502546"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
 by: Lawrence D'Oliv - Sun, 3 Mar 2024 06:51 UTC

On Sat, 2 Mar 2024 23:20:53 +0000, HenHanna wrote:

> it used to be so easy to Copy-Paste text between two files with
> Control-C, Control-V.
>
> THEN, 2 or 3 years ago, when i started using a new ver. of
> Windows,
> i could no longer to this.

Does Vim not do multi-file editing?

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<l4it48Ffuo1U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=139&group=comp.editors#139

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g@nowhere.invalid (G)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: 3 Mar 2024 09:10:32 GMT
Organization: <Not Here, Not Me>
Lines: 17
Sender: Gip <gip@G15.fritz.box>
Message-ID: <l4it48Ffuo1U1@mid.individual.net>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me>
X-Trace: individual.net r/uVgnE9pzKdakzbrcDlPAx4e7no/5hdk8K6+ioxtggr03SXCf
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:TFsxog8Q5FbVIDqbmrDskacEKI4= sha256:UHk2sZqD1jzF9XVXVG31gF/SCAiLF7wisdcvpQPlyZ0=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.7.6-200.fc39.x86_64 (x86_64))
 by: G - Sun, 3 Mar 2024 09:10 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Sat, 2 Mar 2024 23:20:53 +0000, HenHanna wrote:
>
>> it used to be so easy to Copy-Paste text between two files with
>> Control-C, Control-V.
>>
>> THEN, 2 or 3 years ago, when i started using a new ver. of
>> Windows,
>> i could no longer to this.
>
> Does Vim not do multi-file editing?

If you havo more then a few lines to copy or just check the differences
between two similar files "vimdiff file1 file2" is quite useful. It has
specific commands to copy from or to the other file.

G

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<b480f7e4-d8c9-4d90-8e68-02a0bd177d9f@snert.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=141&group=comp.editors#141

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED.108.162.142.228!not-for-mail
From: achowe@snert.com (Anthony Howe)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Sun, 3 Mar 2024 10:39:27 -0500
Organization: A noiseless patient Spider
Lines: 37
Message-ID: <b480f7e4-d8c9-4d90-8e68-02a0bd177d9f@snert.com>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: dont-email.me; posting-host="108.162.142.228";
logging-data="2699483"; mail-complaints-to="abuse@eternal-september.org"
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
 by: Anthony Howe - Sun, 3 Mar 2024 15:39 UTC

On 2024-03-02 18:20, HenHanna wrote:
> it used to be so easy to Copy-Paste text between two files with Control-C,
> Control-V.

With Nvi you can edit two or more files at a time.

:E edit another file (splits the screen)
:N edit next file (split the screen) :P also
^W cycles through open files.

AS I recall there are some commands or options to adjust the split screens, but
never tried.

So edit two ore more files at once; delete or yank lines from one, cycle to the
next file, and paste.

Don't recall if historical vi kept the named and numbered buffers between files,
but you could try:

"a}yy yank a paragraph into buffer a
:e other edit other file
p/P put (paste)
:e% toggle back to previous file, ^^ also toggles files.

So you can skip the need for a temporary file, unless you find that useful to
hold onto.

Also with Nvi there is unlimited undo/redo history:

u toggle undo/redo last edit (historical vi)
. repeat last, so if you undo, you can undo history (or reverse and redo).

--
Anthony C Howe
achowe@snert.com BarricadeMX & Milters
http://nanozen.snert.com/ http://software.snert.com/

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us2lkb$2ltj3$7@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=143&group=comp.editors#143

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Sun, 3 Mar 2024 20:12:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <us2lkb$2ltj3$7@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 3 Mar 2024 20:12:59 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1df16df39307445c7cddc792d9e0afb1";
logging-data="2815587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19SK27F9kgpZzU1cCHPKI4h"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:1f1to4KhUFLIqGXHFrUHK2lOqR4=
 by: Lawrence D'Oliv - Sun, 3 Mar 2024 20:12 UTC

On 3 Mar 2024 09:10:32 GMT, G wrote:

> If you havo more then a few lines to copy or just check the differences
> between two similar files "vimdiff file1 file2" is quite useful. It has
> specific commands to copy from or to the other file.

In normal editors, you use the same commands for cut/copy/paste as you
would when editing a single file.

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us3sgj$317k9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=149&group=comp.editors#149

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Mon, 4 Mar 2024 08:16:34 +0100
Organization: A noiseless patient Spider
Lines: 9
Message-ID: <us3sgj$317k9$1@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 07:16:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="34798543e32327ae8819cc8a5451161b";
logging-data="3186313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+8OVaad96uPazKkvesZ9J/"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:aVT6lQkHcIH+jKjphRk5q2NfOhI=
In-Reply-To: <us2lkb$2ltj3$7@dont-email.me>
 by: Janis Papanagnou - Mon, 4 Mar 2024 07:16 UTC

On 03.03.2024 21:12, Lawrence D'Oliveiro wrote:
>
> In normal editors, you use the same commands for cut/copy/paste as you
> would when editing a single file.

In Vi/Vim it's 'd', 'y', and, 'p' or 'P'.

Janis

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us3srf$319rj$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=150&group=comp.editors#150

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Mon, 4 Mar 2024 08:22:22 +0100
Organization: A noiseless patient Spider
Lines: 14
Message-ID: <us3srf$319rj$1@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<b480f7e4-d8c9-4d90-8e68-02a0bd177d9f@snert.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 07:22:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="9ccd5a597d3b697dd3cf8b22d982b99d";
logging-data="3188595"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Pg8BCXkfKzreQbQukdqVg"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:cikqmv1XYce+1pjA6o0YTnbotJ8=
In-Reply-To: <b480f7e4-d8c9-4d90-8e68-02a0bd177d9f@snert.com>
 by: Janis Papanagnou - Mon, 4 Mar 2024 07:22 UTC

On 03.03.2024 16:39, Anthony Howe wrote:
>
> Also with Nvi there is unlimited undo/redo history:
>
> u toggle undo/redo last edit (historical vi)
> . repeat last, so if you undo, you can undo history (or reverse and
> redo).

In Vim it's 'u' for [multiple] undos and 'Ctrl-R' for redo.

(There's also undo-trees, but I never used it.)

Janis

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<l4lhftFs8ptU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=152&group=comp.editors#152

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g@nowhere.invalid (G)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: 4 Mar 2024 09:10:21 GMT
Organization: <Not Here, Not Me>
Lines: 14
Sender: Gip <gip@G15.fritz.box>
Message-ID: <l4lhftFs8ptU1@mid.individual.net>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net> <us2lkb$2ltj3$7@dont-email.me>
X-Trace: individual.net BygwfIRVYD/gMN9Pk5YuvA6h2gD2eCg0sTuWps+V5zySKoWvcv
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:lH+Ikpd1f01pt0FdPk5gCZjg/MA= sha256:MfY7ay8NyPG7ix5fAguc0xAQtexsbCn714eDk+BuuOg=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.7.6-200.fc39.x86_64 (x86_64))
 by: G - Mon, 4 Mar 2024 09:10 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On 3 Mar 2024 09:10:32 GMT, G wrote:
>
>> If you havo more then a few lines to copy or just check the differences
>> between two similar files "vimdiff file1 file2" is quite useful. It has
>> specific commands to copy from or to the other file.
>
> In normal editors, you use the same commands for cut/copy/paste as you
> would when editing a single file.

And in vimdiff you can use those command if you want (it is still vim after
all), or use the specific command if you want do things faster.

G

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us885i$90p$5@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=166&group=comp.editors#166

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Tue, 5 Mar 2024 23:00:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 17
Message-ID: <us885i$90p$5@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 5 Mar 2024 23:00:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="9241"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+plyyNoi9YIDedcMl9V5pL"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:HaVZcAxpbHtPFCekX2Kxo+QwF8Q=
 by: Lawrence D'Oliv - Tue, 5 Mar 2024 23:00 UTC

On 4 Mar 2024 09:10:21 GMT, G wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>
>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>
>>> If you havo more then a few lines to copy or just check the
>>> differences between two similar files "vimdiff file1 file2" is quite
>>> useful. It has specific commands to copy from or to the other file.
>>
>> In normal editors, you use the same commands for cut/copy/paste as you
>> would when editing a single file.
>
> And in vimdiff you can use those command if you want (it is still vim
> after all), or use the specific command if you want do things faster.

In Emacs, you can have two files open side by side. Or even more than two.

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<cb42b8d86eded25ceaca0cc58180dcdf@www.novabbs.com>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=167&group=comp.editors#167

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@dev.null (HenHanna)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Wed, 6 Mar 2024 03:38:22 +0000
Organization: novaBBS
Message-ID: <cb42b8d86eded25ceaca0cc58180dcdf@www.novabbs.com>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net> <us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net> <us885i$90p$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
logging-data="1009344"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Face: P#KeQ)CUdd!==@fw~Ms1=,Hb`IWtb6:Mw)x3B=H1BfNC\lz?Nb&)M9}$>?'X7l;CuB}utlJ=PHsRBSG6X>dYZ$[>P]$~+`>@V6$t}hTLoQ7XC~W\>:`B3ALU]SH;d(\MEc}znW8m}-ma&yPFkJ2@KSQrz=!Y;><;6a>z6N+mt`ClCt.PAE<o+B$qjwejZSZ,w]^;vrdl24z5(pm={l,F10qRDF
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
X-Rslight-Site: $2y$10$2XKWFJay5KIZwGMlmkdgG.sbzr6Ip9C3HVslnYdtbUFX8EELAZ0OK
 by: HenHanna - Wed, 6 Mar 2024 03:38 UTC

Lawrence D'Oliveiro wrote:

> On 4 Mar 2024 09:10:21 GMT, G wrote:

>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>
>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>
>>>> If you havo more then a few lines to copy or just check the
>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>> useful. It has specific commands to copy from or to the other file.
>>>
>>> In normal editors, you use the same commands for cut/copy/paste as you
>>> would when editing a single file.
>>
>> And in vimdiff you can use those command if you want (it is still vim
>> after all), or use the specific command if you want do things faster.

> In Emacs, you can have two files open side by side. Or even more than two.

in (the old Vi and) Vim , we can have 2 (or more) files open,
but i don't like to do that because it's kinda confusing.

_____________________________(a retro computer wisdom)

In software systems, it is often the early bird that makes the worm.

---------- meaning, (the sleepy programmer) ...that introduces the BUG ?

or ...... writes a computer virus ?????

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<us8ti2$7l3c$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=168&group=comp.editors#168

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Wed, 6 Mar 2024 05:05:07 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 18
Message-ID: <us8ti2$7l3c$1@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net>
<us885i$90p$5@dont-email.me>
<cb42b8d86eded25ceaca0cc58180dcdf@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 05:05:07 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="250988"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+dYVH/FsEiHgecnNr9c9JC"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:MdOlnBeGB+OfqjN9SXnsTOojSdY=
 by: Lawrence D'Oliv - Wed, 6 Mar 2024 05:05 UTC

On Wed, 6 Mar 2024 03:38:22 +0000, HenHanna wrote:

> Lawrence D'Oliveiro wrote:
>
>> On 4 Mar 2024 09:10:21 GMT, G wrote:
>
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>
>> In Emacs, you can have two files open side by side. Or even more than
>> two.
>
> in (the old Vi and) Vim , we can have 2 (or more) files open,
> but i don't like to do that because it's kinda confusing.

Quite easy in Emacs. It also does multi-buffer editing, so you can have
more files open than you have simultaneously visible. You can even have
the same buffer visible in more than one frame/window, so you can see (and
edit) two different parts of the same file easily.

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<l4qrjlFnrcoU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=169&group=comp.editors#169

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g@nowhere.invalid (G)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: 6 Mar 2024 09:33:41 GMT
Organization: <Not Here, Not Me>
Lines: 26
Sender: Gip <gip@G15.fritz.box>
Message-ID: <l4qrjlFnrcoU1@mid.individual.net>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net> <us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net> <us885i$90p$5@dont-email.me>
X-Trace: individual.net +Cg9/1IXZdh8X/JsR2WhtAEnEiwz6dOVt7kNsOTufn4qKlUoNb
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:+yRTNPp2yLLYE+4jzqZ84rPC1q0= sha256:oQlKIEjCLRkfMAkd4SFSsNfO8v2olTeim4+nLhXxtIw=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.7.7-200.fc39.x86_64 (x86_64))
 by: G - Wed, 6 Mar 2024 09:33 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On 4 Mar 2024 09:10:21 GMT, G wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>
>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>
>>>> If you havo more then a few lines to copy or just check the
>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>> useful. It has specific commands to copy from or to the other file.
>>>
>>> In normal editors, you use the same commands for cut/copy/paste as you
>>> would when editing a single file.
>>
>> And in vimdiff you can use those command if you want (it is still vim
>> after all), or use the specific command if you want do things faster.
>
> In Emacs, you can have two files open side by side. Or even more than two.

That's what "vimdiff" does: it automatically shows the two files side to side,
highlights the differences, folds the part that are similar if they are long,
and other stuff specific to the job of dealing with the differences between
two files. All of this can be done in normal vim, of course, it's just a fast
way of setting up for this very specific task.

G

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<usalqb$k39k$3@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=171&group=comp.editors#171

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Wed, 6 Mar 2024 21:05:16 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <usalqb$k39k$3@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net>
<us885i$90p$5@dont-email.me> <l4qrjlFnrcoU1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 6 Mar 2024 21:05:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="289fca74fac389e911c3152c39303989";
logging-data="658740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18x30p+cZH2zuX8pKlbFNLX"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:oFAFiX8aZW+zb8sZMg+Qv81MYx8=
 by: Lawrence D'Oliv - Wed, 6 Mar 2024 21:05 UTC

On 6 Mar 2024 09:33:41 GMT, G wrote:

> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>
>> On 4 Mar 2024 09:10:21 GMT, G wrote:
>>
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>
>>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>>
>>>>> If you havo more then a few lines to copy or just check the
>>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>>> useful. It has specific commands to copy from or to the other file.
>>>>
>>>> In normal editors, you use the same commands for cut/copy/paste as
>>>> you would when editing a single file.
>>>
>>> And in vimdiff you can use those command if you want (it is still vim
>>> after all), or use the specific command if you want do things faster.
>>
>> In Emacs, you can have two files open side by side. Or even more than
>> two.
>
> That's what "vimdiff" does ...

We already gathered that. We don’t need to start Emacs in a special mode
to get that.

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<l4tgucF5pl9U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=172&group=comp.editors#172

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g@nowhere.invalid (G)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: 7 Mar 2024 09:50:04 GMT
Organization: <Not Here, Not Me>
Lines: 36
Sender: Gip <gip@G15.fritz.box>
Message-ID: <l4tgucF5pl9U1@mid.individual.net>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net> <us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net> <us885i$90p$5@dont-email.me> <l4qrjlFnrcoU1@mid.individual.net> <usalqb$k39k$3@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net NHLlpoJIyZpTQq2mF+Fy1QUU+hXF4UM5A2VxpEWNY3Z8JvsZn1
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:ID0/YOC1euzfxULyUS7UEEOJOQs= sha256:Xak9gulxjRabPKbFV4BJ62zJhFQlbHqcEIrEiFvLUUk=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.7.7-200.fc39.x86_64 (x86_64))
 by: G - Thu, 7 Mar 2024 09:50 UTC

Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On 6 Mar 2024 09:33:41 GMT, G wrote:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>
>>> On 4 Mar 2024 09:10:21 GMT, G wrote:
>>>
>>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>>
>>>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>>>
>>>>>> If you havo more then a few lines to copy or just check the
>>>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>>>> useful. It has specific commands to copy from or to the other file.
>>>>>
>>>>> In normal editors, you use the same commands for cut/copy/paste as
>>>>> you would when editing a single file.
>>>>
>>>> And in vimdiff you can use those command if you want (it is still vim
>>>> after all), or use the specific command if you want do things faster.
>>>
>>> In Emacs, you can have two files open side by side. Or even more than
>>> two.
>>
>> That's what "vimdiff" does ...
>
> We already gathered that. We don’t need to start Emacs in a special mode
> to get that.

We don't "need" to start vim in a special mode to get that either, but it's
faster ad easier. As I said it's just the usual vim with the options you need
to do what you want already there. If you prefer to do it the Emacs way you
can start vim with one file, load the second and give the commands to start
the "diff" mode; I just don't see why you would want to do that.

G

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<uscg0f$12n9q$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=173&group=comp.editors#173

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: janis_papanagnou+ng@hotmail.com (Janis Papanagnou)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in
Vim)
Date: Thu, 7 Mar 2024 14:38:22 +0100
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <uscg0f$12n9q$1@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net>
<us885i$90p$5@dont-email.me> <l4qrjlFnrcoU1@mid.individual.net>
<usalqb$k39k$3@dont-email.me> <l4tgucF5pl9U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 13:38:23 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="0d87425d43dfe176d38af3ee0429ae5f";
logging-data="1137978"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX191vAIbqDZTyTA3ltvibZYN"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:H4rupuSlkvGWStru9LeoU4gS3W8=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <l4tgucF5pl9U1@mid.individual.net>
 by: Janis Papanagnou - Thu, 7 Mar 2024 13:38 UTC

On 07.03.2024 10:50, G wrote:
> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>> On 6 Mar 2024 09:33:41 GMT, G wrote:
>>
>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>
>>>> On 4 Mar 2024 09:10:21 GMT, G wrote:
>>>>
>>>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>>>
>>>>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>>>>
>>>>>>> If you havo more then a few lines to copy or just check the
>>>>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>>>>> useful. It has specific commands to copy from or to the other file.
>>>>>>
>>>>>> In normal editors, you use the same commands for cut/copy/paste as
>>>>>> you would when editing a single file.
>>>>>
>>>>> And in vimdiff you can use those command if you want (it is still vim
>>>>> after all), or use the specific command if you want do things faster.
>>>>
>>>> In Emacs, you can have two files open side by side. Or even more than
>>>> two.
>>>
>>> That's what "vimdiff" does ...

Actually, if all I want is edit two files with Vim I wouldn't
use vimdiff but the ordinary vim call, because vimdiff does a
lot that I usually just don't want (unless comparing files);
e.g. the coloring of file differences.

>>
>> We already gathered that. We don’t need to start Emacs in a special mode
>> to get that.
>
> We don't "need" to start vim in a special mode to get that either, but it's
> faster ad easier. As I said it's just the usual vim with the options you need
> to do what you want already there. If you prefer to do it the Emacs way you
> can start vim with one file, load the second and give the commands to start
> the "diff" mode; I just don't see why you would want to do that.

Yes, you can load a second (or third, etc) file in one step by
:split file2 or by :vsplit file3 (the latter for side by side).
No extra command necessary. If we have provided the files on
the command line already we need only :split (or :vsplit) to
get two views of the first file and :n to see the second file
in one of the split window.

But note that the other poster is likely more interested in
an argument or a flame war given that he wrote in a parallel
thread: "Emacs is the world’s most powerful editor.", so he
might not be interested in Vim facts or to learn about what
Vim actually provides beyond his prejudice or preferences.

Janis

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<l4ugk7FahcvU1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=176&group=comp.editors#176

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: g@nowhere.invalid (G)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)
Date: 7 Mar 2024 18:50:47 GMT
Organization: <Not Here, Not Me>
Lines: 65
Sender: Gip <gip@G15.fritz.box>
Message-ID: <l4ugk7FahcvU1@mid.individual.net>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com> <us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net> <us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net> <us885i$90p$5@dont-email.me> <l4qrjlFnrcoU1@mid.individual.net> <usalqb$k39k$3@dont-email.me> <l4tgucF5pl9U1@mid.individual.net> <uscg0f$12n9q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net FaRK+AWj2qbWDHrKX9xswg8ZpAbgnRu6am8k6ElYQzqim3TRP7
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:qSW3P3jgKnCD6QpYxaB0Kes/4cY= sha256:+KfIwAmsc4xtglWnL/w5gPi75xr4rzInGoXHNBpqo9E=
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.7.7-200.fc39.x86_64 (x86_64))
 by: G - Thu, 7 Mar 2024 18:50 UTC

Janis Papanagnou <janis_papanagnou+ng@hotmail.com> wrote:
> On 07.03.2024 10:50, G wrote:
>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>> On 6 Mar 2024 09:33:41 GMT, G wrote:
>>>
>>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>
>>>>> On 4 Mar 2024 09:10:21 GMT, G wrote:
>>>>>
>>>>>> Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
>>>>>>>
>>>>>>> On 3 Mar 2024 09:10:32 GMT, G wrote:
>>>>>>>
>>>>>>>> If you havo more then a few lines to copy or just check the
>>>>>>>> differences between two similar files "vimdiff file1 file2" is quite
>>>>>>>> useful. It has specific commands to copy from or to the other file.
>>>>>>>
>>>>>>> In normal editors, you use the same commands for cut/copy/paste as
>>>>>>> you would when editing a single file.
>>>>>>
>>>>>> And in vimdiff you can use those command if you want (it is still vim
>>>>>> after all), or use the specific command if you want do things faster.
>>>>>
>>>>> In Emacs, you can have two files open side by side. Or even more than
>>>>> two.
>>>>
>>>> That's what "vimdiff" does ...
>
> Actually, if all I want is edit two files with Vim I wouldn't
> use vimdiff but the ordinary vim call, because vimdiff does a
> lot that I usually just don't want (unless comparing files);
> e.g. the coloring of file differences.
>
Yes, if I just want to edit multiple files. But for the work I do (mostly
integrating differential equations or similar stuff) I often have very similar
programs and vimdiff is very useful to check and transfer differences.
But you are right about the coloring so I have by default the usual code
coloring disabled and keep the one about differences as when I am using
vimdiff that's what I am interested in.

>>> We already gathered that. We don’t need to start Emacs in a special mode
>>> to get that.
>>
>> We don't "need" to start vim in a special mode to get that either, but it's
>> faster ad easier. As I said it's just the usual vim with the options you need
>> to do what you want already there. If you prefer to do it the Emacs way you
>> can start vim with one file, load the second and give the commands to start
>> the "diff" mode; I just don't see why you would want to do that.
>
> Yes, you can load a second (or third, etc) file in one step by
> :split file2 or by :vsplit file3 (the latter for side by side).
> No extra command necessary. If we have provided the files on
> the command line already we need only :split (or :vsplit) to
> get two views of the first file and :n to see the second file
> in one of the split window.
>
> But note that the other poster is likely more interested in
> an argument or a flame war given that he wrote in a parallel
> thread: "Emacs is the world’s most powerful editor.", so he
> might not be interested in Vim facts or to learn about what
> Vim actually provides beyond his prejudice or preferences.
>
Yep, but it was fun not feeding the troll...

G

Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

<usd7f4$17slt$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=177&group=comp.editors#177

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.editors
Subject: Re: how i use [wt] and [rt] to Copy-Paste text between two files
(in Vim)
Date: Thu, 7 Mar 2024 20:18:44 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 8
Message-ID: <usd7f4$17slt$2@dont-email.me>
References: <cce5330231bc1d01cd4b0e883b4bf69a@www.novabbs.com>
<us16l2$2cbsi$3@dont-email.me> <l4it48Ffuo1U1@mid.individual.net>
<us2lkb$2ltj3$7@dont-email.me> <l4lhftFs8ptU1@mid.individual.net>
<us885i$90p$5@dont-email.me> <l4qrjlFnrcoU1@mid.individual.net>
<usalqb$k39k$3@dont-email.me> <l4tgucF5pl9U1@mid.individual.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 7 Mar 2024 20:18:44 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="63d07f27dc2a6beb992a482a5dec0d77";
logging-data="1307325"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18IlXg5MSjQF4jYuCrf+zT5"
User-Agent: Pan/0.155 (Kherson; fc5a80b8)
Cancel-Lock: sha1:lyBjYdxMgd59qgSSsa1LQ0t+iZ8=
 by: Lawrence D'Oliv - Thu, 7 Mar 2024 20:18 UTC

On 7 Mar 2024 09:50:04 GMT, G wrote:

> We don't "need" to start vim in a special mode to get that either, but
> it's faster ad easier.

With Emacs, we have server mode and the “emacsclient” command to add more
open files to the running instance. This can be done via a custom right-
click option in a file manager, for example.


computers / comp.editors / Re: how i use [wt] and [rt] to Copy-Paste text between two files (in Vim)

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor