Article View: news.software.readers
Article #242032Re: Quotelength with slrn and vim
From: W. Citoan
Date: Sun, 08 Aug 2010 13:11
Date: Sun, 08 Aug 2010 13:11
40 lines
3153 bytes
3153 bytes
houghi wrote:
> Bastian Erdnuess wrote:
> >> This might be a step in the right direction, as it something to my
> >> sig. (I can remove the > there. I just added them because of
> >> colouring) However it did nothing for the original quoted text.
> >
> > Then try
> >
> > set editor "vim '%s' +%c +':norm gqap' +%c"
> >
> > could work for now, but might break when you change some other
> > settings. I'd recommend to just do it by hand.
>
> Seems to work partially. About one in every 10-20 times it mangels
> the signature. It then makes all of the signature into one paragraph
> without the CR/LF in it.
Need to limit it to only format from the first blank line to the start
of the signature block. See below for a command that does that (the F2
mapping).
> As I never had an issue in all the years, perhaps it is easier to do
> it by hand as it does not happen that often. Thanks anyway for
> helping. I will look into it a bit further.
I have the following two maps defined in my vimrc:
map <F1> <Esc>gqap " reformat paragraph
map <F2> <Esc>gg/^$<CR>V/^-- $<CR>{gq`^ " reformat message
F1 fixes a single paragraph and F2 everything between the first blank
line and the signature block. As in editing a message I will sometimes
change the line wraps, I find it easier to just hit a key when I need
to.
- W. Citoan
--
The optimist proclaims that we live in the best of all possible worlds; and
the pessimist fears this is true.
-- Branch Cabell
Technical Details
Message-ID:
<slrni5tb7u.5j8.wcitoan@wcitoan-via.eternal-september.org>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!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<slrni5qtcf.d1a.houghi@penne.houghi> <slrn20100807125136.330.twooffive@may.eternal-september.org> <slrni5r6b3.d1a.houghi@penne.houghi> <slrn20100807145004.58.twooffive@may.eternal-september.org> <slrni5rjbu.7ut.earthnut@wh36-e604.wh36.uni-karlsruhe.de> <slrni5rs4g.b0o.houghi@penne.houghi> <slrni5s04p.930.earthnut@wh36-e604.wh36.uni-karlsruhe.de> <slrni5t52v.14a.houghi@penne.houghi>Show Full Headers
Complete Article Headers
Message-ID: <slrni5tb7u.5j8.wcitoan@wcitoan-via.eternal-september.org> Subject: Re: Quotelength with slrn and vim Date: Sun, 08 Aug 2010 13:11:31 +0000 From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com> References: <slrni5qtcf.d1a.houghi@penne.houghi> <slrn20100807125136.330.twooffive@may.eternal-september.org> <slrni5r6b3.d1a.houghi@penne.houghi> <slrn20100807145004.58.twooffive@may.eternal-september.org> <slrni5rjbu.7ut.earthnut@wh36-e604.wh36.uni-karlsruhe.de> <slrni5rs4g.b0o.houghi@penne.houghi> <slrni5s04p.930.earthnut@wh36-e604.wh36.uni-karlsruhe.de> <slrni5t52v.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!xlned.com!feeder1.xlned.com!news.netcologne.de!newsfeed-fusi2.netcologne.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 40 Injection-Date: Sun, 8 Aug 2010 13:11:31 +0000 (UTC) Injection-Info: wcitoan-via.eternal-september.org; posting-host="v98PO2s3wd8qcatFvu8FRA"; logging-data="24993"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18BJF7akKX6FNlEWMZHwyES" User-Agent: slrn/0.9.8.1 (Win32) X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 100808-0, 08/08/2010), Outbound message Cancel-Lock: sha1:nZodz+uBjSlZk351LV/R6Uck5tk=