Article View: news.software.readers
Article #245242Re: [slrn] PING: gvim users -- need help with word wrap
From: Mike Yetto
Date: Sun, 03 Apr 2011 13:18
Date: Sun, 03 Apr 2011 13:18
52 lines
3207 bytes
3207 bytes
naughtypine <this.email@address.is.INVALID> writes and having writ moves on.
>Been away from slrn for a while and am trying to get things back the way
>I had 'em. Running into problems with word wrap...
>In my slrnrc I have the following:
>#v+
>set editor_command "gvim -f +'/^$/ +1' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"
>#v-
>I'm pretty sure that Blinky gave me this at one point. IIRC, when gvim
>was invoked to followup, it would automagically rewrap long lines in the
>quoted message.
In vim place the pointer somewhere in the paragraph you want to
reformat and press _<esc>gqap_ which will handle the quote marks
quite nicely. You might want to add a blank line where you want
the paragraph to end as it might get carried away.
This appeared here last August and may help.
#v+
W. Citoan wrote:
> 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.
+v-
This was added to that conversation Bastian Erdnuess.
#v+
I didn't give it a test, but something like
set editor "vim '%s' +':norm Ggqap' +%c"
in slrnrc could help.
#v-
You'll still want to use "set tw=72" or to taste and definitely
keep "-f +'/^$/ +1'" to start after the first blank line.
I don't know what the "set comments..." does, so play with that
and let us know how it goes.
Mike "looks like I have another FM to R" Yetto
--
In theory, theory and practice are the same.
In practice they are not.
Technical Details
Message-ID:
<slrn20110403085640.283.twooffive@may.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mailReferences:
<in8n77$pj5$1@naughtypine.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn20110403085640.283.twooffive@may.eternal-september.org> Subject: Re: [slrn] PING: gvim users -- need help with word wrap Date: Sun, 03 Apr 2011 09:18:49 -0400 From: Mike Yetto <myetto1@nycap.invalid> References: <in8n77$pj5$1@naughtypine.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: slrn Mafia / Xnews Tong (emeritus) Lines: 52 Injection-Info: may.eternal-september.org; posting-host="xGKpppg/qGlWwUXu8fNPTA"; logging-data="19018"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19+b3tBt+3bV/pUikr4DAPQKN0tUZBFfLQ=" User-Agent: slrn/pre1.0.0-26/co (Linux; 64bit) X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/ X-No-Bananas: Yes Cancel-Lock: sha1:EfFxhzYlHI2oXPTqbRw6A27P4Pg= sha1:stphI8QodyuplPCcSujqtNEyzTA=