🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #250858

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

#250858
From: Ivan The Not-So-Bad
Date: Thu, 19 Jul 2012 01:16
55 lines
3789 bytes
On 2012-07-18, Whiskers <catwheezel@operamail.com> wrote:
> On 2012-07-17, Ivan The Not-So-Bad <1suf41n@yahoo.com> wrote:
>> On 2012-07-17, Whiskers <catwheezel@operamail.com> wrote:
>>> On 2012-07-17, John F. Morse <john@example.invalid> wrote:
>>>> John F. Morse wrote:
>
> [...]
>
>>>> 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.
>
> That's what I do too, using mcedit, although I'm sure a script to automate it
> must be possible, and probably already exists somewhere if I looked hard
> enough.
>
>> 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 :)
>
> I'm not a Vim user, although I intend to graduate to it eventually (I've been
> telling myself that for years); but I have found this 
><http://vim.wikia.com/wiki/Fix_email_quotations_with_long_lines> which looks
>promising.
>


Wow! This actually worked! There is still a few key combos you have to hit (go
into visual mode and then g, q) but yes it does wrap and re-quote properly!

Thank you so much for that link!
Technical Details
Message-ID: <50075fd1$0$39088$c3e8da3$38634283@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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.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> <50058d0d$0$39080$c3e8da3$88b277c5@news.astraweb.com> <slrnk0ebu5.n7.catwheezel@ID-107770.user.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <50075fd1$0$39088$c3e8da3$38634283@news.astraweb.com>
Subject: Re: [slrn]/[vim] Follow-up posts and wordwrap
Date: Thu, 19 Jul 2012 01:16:01 +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> <50058d0d$0$39080$c3e8da3$88b277c5@news.astraweb.com> <slrnk0ebu5.n7.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!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.astraweb.com!border5.a.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: 55
NNTP-Posting-Host: 343f9d1f.news.astraweb.com
X-Trace: DXC=DCH5jJj@VBHOObP71A_HVDL?0kYOcDh@JAbEQDQVnB=M3bEJ6cEhU?HUC2Bmn4SXhINl^XSI9OdmF=^DeGf@FW5FX3\TDelNABMhc:0dcTDTcC
X-Original-Bytes: 3526