🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #242040

Re: Quotelength with slrn and vim

#242040
From: Bastian Erdnuess
Date: Sun, 08 Aug 2010 18:14
40 lines
2282 bytes
houghi wrote:

> Indi wrote:
>> In vim doing this:
>>
>>:18,77!fmt 80 
>>
>> will wrap lines 18 through 77 at 80 characters.
>
> OK, that would mean that I first have to figure out the first line
> after the first empty line, then the beginning of the signature minus
> one line and then do everything in between.
>
> I will look into it.

I don't think that fmt is the right tool for your needs.

Here is another one:

  set editor "vim '%s' +':norm 1G/^$^MjV/^-- $^Mkgw' +':nohl' +%c"

where the two '^M' behind the dollar signs are keyed in by
'[ctrl]-[v],[return]'.

Works only if you have a sig.

What happens when you just use

  set editor "vim '%s' +%c"

and do 'gwap' right after vim starts?  Do you have a signoff_string set
in slrnrc?  If so, try to start or end it with one or two '\n'.  If not,
try

  set signoff_string "\n\n"

or just one "\n" if your if your sig gets messed up.

Cheers
Bastian
Technical Details
Message-ID: <slrni5tsvk.bi9.earthnut@wh36-e604.wh36.uni-karlsruhe.de>
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.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.belwue.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
References: <slrni5qtcf.d1a.houghi@penne.houghi> <8c65hsFn65U1@mid.individual.net> <slrni5rt0a.bl5.houghi@penne.houghi> <8c6c4cFnl3U1@mid.individual.net> <slrni5t5ah.14a.houghi@penne.houghi>

Show Full Headers
Complete Article Headers
Message-ID: <slrni5tsvk.bi9.earthnut@wh36-e604.wh36.uni-karlsruhe.de>
Subject: Re: Quotelength with slrn and vim
Date: Sun, 08 Aug 2010 18:14:12 +0000
From: Bastian Erdnuess <earthnut@web.de>
References: <slrni5qtcf.d1a.houghi@penne.houghi> <8c65hsFn65U1@mid.individual.net> <slrni5rt0a.bl5.houghi@penne.houghi> <8c6c4cFnl3U1@mid.individual.net> <slrni5t5ah.14a.houghi@penne.houghi>
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.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.erje.net!news-2.dfn.de!news.dfn.de!news.uni-stuttgart.de!news.belwue.de!rz.uni-karlsruhe.de!news.rz.uni-karlsruhe.de!not-for-mail
Newsgroups: news.software.readers
Organization: University of Karlsruhe, Germany
Lines: 40
NNTP-Posting-Host: wh36-e604.wh36.uni-karlsruhe.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: news2.rz.uni-karlsruhe.de 1281291252 1813 172.20.230.220 (8 Aug 2010
X-Complaints-To: abuse@uni-karlsruhe.de
NNTP-Posting-Date: Sun, 8 Aug 2010 18:14:12 +0000 (UTC)
User-Agent: slrn/0.9.9p1 (Darwin)