🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250831

Re: [slrn]/[vim] Follow-up posts and wordwrap

#250831
From: Ivan The Not-So-Bad
Date: Tue, 17 Jul 2012 16:04
59 lines
4125 bytes
On 2012-07-17, Whiskers <catwheezel@operamail.com> wrote:
> On 2012-07-17, John F. Morse <john@example.invalid> wrote:
>> John F. Morse wrote:
>>
>>> I see here that my SLRN does not handle format=flowed nor does it trim the sig block properly. I'm using NANO 2.0.7 as my editor, but the chop work was in SLRN before I replied in this followup.
>>>
>>> The above line is much longer than 40 columns, and NANO fills to the edge of the window. We'll see how it looks back in Thunderbird, which does support format-flowed.
>>>
>>> Personally I prefer Tin over SLRN, but that is just my preference and I realize other people may disagree.
>>>   
>>
>>
>> Using Thunderbird, I see the long lines flow into the space of the 
>> enclosing window.
>>
>> Using SLRN, the long lines extend beyond the right window border. I can 
>> resize the (GNOME Terminal) window by dragging the right edge, but only 
>> until the window reaches the limits of my display (monitor) screen.
>>
>> Then I could drag the window to the left by using the title bar (or 
>> <Alt>Drag anywhere), beyond the left edge of the display, and gain 
>> access to more area for enlarging the window.
>>
>> I prefer GTerm because I see black text on a white background better. 
>> But even when using a pure console (VT or TTY), the SLRN display is the 
>> same except there is no GUI "window" to drag around.
>>
>> Using either terminal method to run SLRN, it is easier to press W or w 
>> to wordwrap the long lines. So even SLRN users do not have a valid gripe 
>> about long lines.
>
> Except that when quoting the long lines, they have to be re-formatted 
> manually (or using an editor macro or script) or left too long (which 
> slrn warns you is not good practice).  Quoted long lines can be wrapped 
> by slrn to fit within the console width, but the quote mark > is still 
> only shown once for that line.
>
> [...]
>

This behavior in SLRN is exactly why I asked this question. In vim, I
have to manually wrap those lines as well and re-quote them.

It would be great if vim had command-line options for line-width. I
*think* one thing that can be done from the command line for vim is
something like -c"set tw=80" which sets the line width to 80 ... so in
.slrnrc you should be able to specify something like:

set editor_command "vim -c %d -c \"set tw=80\" '%s'"

And then when in the editor, the key sequence V and then gq *should*
reflow, though you'd still have to properly re-quote reflowed lines.

One issue is I don't know if escaping quotes like I show in the slrnrc
will work.

The other issue is that when I try this manually, it does not work...
though it should :)
Technical Details
Message-ID: <50058d0d$0$39080$c3e8da3$88b277c5@news.astraweb.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail
References: <5004d93e$0$1473$c3e8da3$92d0a893@news.astraweb.com> <1mxmoaj7fk6re.h0xae865x9rl.dlg@40tude.net> <50055a7b$0$44948$c3e8da3$33881b6a@news.astraweb.com> <ju3qnd$ioc$1@n102.xanadu-bbs.net> <ju3rpc$iol$1@n102.xanadu-bbs.net> <ju3uas$jpo$1@n102.xanadu-bbs.net> <slrnk0b0rf.l9.catwheezel@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <50058d0d$0$39080$c3e8da3$88b277c5@news.astraweb.com>
Subject: Re: [slrn]/[vim] Follow-up posts and wordwrap
Date: Tue, 17 Jul 2012 16:04:29 +0000
From: Ivan The Not-So-Bad <1suf41n@yahoo.com>
References: <5004d93e$0$1473$c3e8da3$92d0a893@news.astraweb.com> <1mxmoaj7fk6re.h0xae865x9rl.dlg@40tude.net> <50055a7b$0$44948$c3e8da3$33881b6a@news.astraweb.com> <ju3qnd$ioc$1@n102.xanadu-bbs.net> <ju3rpc$iol$1@n102.xanadu-bbs.net> <ju3uas$jpo$1@n102.xanadu-bbs.net> <slrnk0b0rf.l9.catwheezel@ID-107770.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!xlned.com!feeder3.xlned.com!news.glorb.com!news.astraweb.com!border6.newsrouter.astraweb.com!not-for-mail
Newsgroups: news.software.readers
Organization: John Doe LTD
User-Agent: slrn/0.9.9p1 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 59
NNTP-Posting-Host: d8669369.news.astraweb.com
X-Trace: DXC=4bGJnV_N4FKc_WgCkn9MLEL?0kYOcDh@JAbEQDQVnB=Mi<Mg6XalR7@l23]GVn`ZmFNl^XSI9OdmF=^DeGf@FW5FX3\TDelNABMQ3H<IT?1>BG
X-Original-Bytes: 3785