Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

For large values of one, one equals two, for small values of two.


computers / comp.editors / using [fmt] within Vim to simulate Nroff output

SubjectAuthor
* using [fmt] within Vim to simulate Nroff outputHenHanna
`* Re: using [fmt] within Vim to simulate Nroff outputJanis Papanagnou
 `- Re: using [fmt] within Vim to simulate Nroff outputHenHanna

1
using [fmt] within Vim to simulate Nroff output

<b5bb545baec4199bb0c3ab1c0af4ef38@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@dev.null (HenHanna)
Newsgroups: comp.editors
Subject: using [fmt] within Vim to simulate Nroff output
Date: Sun, 3 Mar 2024 20:17:14 +0000
Organization: novaBBS
Message-ID: <b5bb545baec4199bb0c3ab1c0af4ef38@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="720265"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
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
X-Rslight-Site: $2y$10$jyId2t6n8J.8B0yLqlfoNOv2bI6ezIA3MBxkPwKosArdl4G3P9u/S
 by: HenHanna - Sun, 3 Mar 2024 20:17 UTC

> Or if you happen to use Emacs, you can invoke `M-x set-justification`,
> then type "full", then use M-q to apply full justification on the
> region. No ancient scribes required (well, aside from the Emacs
> authors). Be warned that it looks kind of goofy on a screen in a
> monospace font instead of in a book in a nice variable-width typeface.

Well... it depends on what you
mean by "goofy" -- does it not?

And i haven't used Emacs in over
3 decades... Is it stil used? and if
so, in what context?

Someone (a friend) once remarked
(with intentional wit) that
Emacs seems _superbly optimized_ for
(drum-roll, please) writing Emacs-
macros! (or should it be written
as "Emacs's Macros" more properly?)

i looked for online Nroff simulators
or emulators and was able to find
none! w w w w w w w w w w w w w w w

Then, i suddenly had the bright idea
of using [fmt] within Vim to
simulate Nroff output, and got:

'fmt' is not recognized as an internal or external command, operable program or batch file.

???

Re: using [fmt] within Vim to simulate Nroff output

<us3tlj$31eku$1@dont-email.me>

  copy mid

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

  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: using [fmt] within Vim to simulate Nroff output
Date: Mon, 4 Mar 2024 08:36:17 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <us3tlj$31eku$1@dont-email.me>
References: <b5bb545baec4199bb0c3ab1c0af4ef38@www.novabbs.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 4 Mar 2024 07:36:19 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="34798543e32327ae8819cc8a5451161b";
logging-data="3193502"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ha/sLYeUegChExX7LEFwp"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
Thunderbird/45.8.0
Cancel-Lock: sha1:03pOqdhSYvzDed1r8gkPxAod/aM=
X-Enigmail-Draft-Status: N1110
In-Reply-To: <b5bb545baec4199bb0c3ab1c0af4ef38@www.novabbs.com>
 by: Janis Papanagnou - Mon, 4 Mar 2024 07:36 UTC

On 03.03.2024 21:17, HenHanna wrote:
>
> i looked for online Nroff simulators
> or emulators and was able to find none! w w w w w w w w w w w w w w w
>
> Then, i suddenly had the bright idea
> of using [fmt] within Vim to simulate Nroff output, and got:
>
> 'fmt' is not recognized as an internal or external command, operable
> program or batch file.
>
> ???

'fmt' is a standard Unix command that you can use (like other external
commands) as a filter; e.g. to format the file from the cursor to the
end of the file: !Gfmt

There's of course also a builtin available in Vim. I usually use it in
visual mode, marking lines with: 'V' <some movements> 'gq'
The V starts line marking and gq does the formatting. The option 'tw'
or 'textwidth' is used to defined the desired formatting width, say
as in :set tw=32

(I cannot see, though, how 'fmt' would emulate 'nroff' in any way.
Or do you want only a block justify?)

Janis

Re: using [fmt] within Vim to simulate Nroff output

<47ac6eef7a220ea0a39da5b7705fa216@www.novabbs.com>

  copy mid

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

  copy link   Newsgroups: comp.editors
Path: i2pn2.org!.POSTED!not-for-mail
From: HenHanna@dev.null (HenHanna)
Newsgroups: comp.editors
Subject: Re: using [fmt] within Vim to simulate Nroff output
Date: Tue, 5 Mar 2024 07:09:35 +0000
Organization: novaBBS
Message-ID: <47ac6eef7a220ea0a39da5b7705fa216@www.novabbs.com>
References: <b5bb545baec4199bb0c3ab1c0af4ef38@www.novabbs.com> <us3tlj$31eku$1@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="883021"; mail-complaints-to="usenet@i2pn2.org";
posting-account="t+lO0yBNO1zGxasPvGSZV1BRu71QKx+JE37DnW+83jQ";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Site: $2y$10$TQAYUkjIRTU..gPgFgp/oujFD8/Zm25.BvCkmhmCl3OMQxYkOgSqy
X-Rslight-Posting-User: 5a1f1f09909a70d7ae18ae9af00e018f83ece577
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 - Tue, 5 Mar 2024 07:09 UTC

Janis Papanagnou wrote:

> On 03.03.2024 21:17, HenHanna wrote:
>>
>> i looked for online Nroff simulators
>> or emulators and was able to find none! w w w w w w w w w w w w w w w
>>
>> Then, i suddenly had the bright idea
>> of using [fmt] within Vim to simulate Nroff output, and got:
>>
>> 'fmt' is not recognized as an internal or external command, operable
>> program or batch file.
>>
>> ???

> 'fmt' is a standard Unix command that you can use (like other external
> commands) as a filter; e.g. to format the file from the cursor to the
> end of the file: !Gfmt

> There's of course also a builtin available in Vim. I usually use it in
> visual mode, marking lines with: 'V' <some movements> 'gq'
> The V starts line marking and gq does the formatting. The option 'tw'
> or 'textwidth' is used to defined the desired formatting width, say
> as in :set tw=32

> (I cannot see, though, how 'fmt' would emulate 'nroff' in any way.
> Or do you want only a block justify?)

> Janis

Thank you... i wasn't familiar with gq as in gqG or gggqG


computers / comp.editors / using [fmt] within Vim to simulate Nroff output

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor