Article View: news.software.readers
Article #250823Re: [slrn]/[vim] Follow-up posts and wordwrap
From: Frank Slootweg
Date: Tue, 17 Jul 2012 14:47
Date: Tue, 17 Jul 2012 14:47
59 lines
3271 bytes
3271 bytes
Ivan The Not-So-Bad <1suf41n@yahoo.com> wrote:
> On 2012-07-17, tlvp <mPiOsUcB.EtLlLvEp@att.net> wrote:
> > On 17 Jul 2012 03:17:18 GMT, Ivan The Not-So-Bad wrote:
> >
> >> Problem: Sometimes while replying to a post, the quoted text will
> >> be a line longer than 80 columns and vim does not automatically
> >> word-wrap this.
> >>
> >> Does anyone know a way to set vim to word-wrap @ 80 columns from
> >> command line?
> >>
> >> Currently my editor flag is: set editor_command "vim -c %d '%s'"
> >>
> >> I've briefly browsed through the vim man file and couldn't find
> >> anything regarding setting up word wrapping.
> >>
> >> Has anyone dealt with this>
> >
> > You really should allow your recipients' clients to deal with
> > wrapping the lines of the posts you send, particularly when it comes
> > to quoted material.
> >
> > IOW, not your problem.
> >
> > HTH. Cheers, -- tlvp
>
> Thanks for the response.
>
> I always thought it was improper usenet etiquette to not wrap @ 80
> cols on posts and responses. Am I just following some sort of
> antiquated notion here?
You're 'right' and tlvp is 'wrong'.
Netiquette, the GNKSA et al, USEFOR, etc. say that new text should not
be longer than 72 columns and quoted text should not be longer than 80
columns.
As far as I know, vi(m) can not do this fully automatically, but can
do it semi-automatically.
I mark text to be re-wrapped by using 'V' (shift-V) and then cursor
down, and do the re-wrapping with 'gq'.
Of course you have to set a wrap margin in your .vimrc, i.e.
"set wm=8" (or "set tw=72"). You also have to put "set fo=tcrq" in your
.vimrc. (This comes from the now obsolete page
<http://www.vim.org/tips/tip.php?tip_id=273>)
Besides this, I have the following two maps defined in my .vimrc
(information courtesy W. Citoan):
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.
HTH.
Technical Details
Message-ID:
<a6lc7aFsrsU1@mid.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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<5004d93e$0$1473$c3e8da3$92d0a893@news.astraweb.com> <1mxmoaj7fk6re.h0xae865x9rl.dlg@40tude.net> <50055a7b$0$44948$c3e8da3$33881b6a@news.astraweb.com>Show Full Headers
Complete Article Headers
Message-ID: <a6lc7aFsrsU1@mid.individual.net>
Subject: Re: [slrn]/[vim] Follow-up posts and wordwrap
Date: Tue, 17 Jul 2012 14:47:06 +0000
From: Frank Slootweg <this@ddress.is.invalid>
References: <5004d93e$0$1473$c3e8da3$92d0a893@news.astraweb.com> <1mxmoaj7fk6re.h0xae865x9rl.dlg@40tude.net> <50055a7b$0$44948$c3e8da3$33881b6a@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.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
Newsgroups: news.software.readers
Organization: NOYB
Lines: 59
X-Trace: individual.net
k+c3Knt8X+vxrnPcKm6vRQZ6RS1uHfJbS/Z00zYYeLE37GHn3nnnQraiAjNlpHmLv5
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:y3qt5DyEPLtVKbGa63IipqOBWqw=
User-Agent: tin/1.6.2-20030910 ("Pabbay") (UNIX)
(CYGWIN_NT-6.0/1.5.22(0.156/4/2) (i686)) Hamster/2.0.2.2
X-Original-Bytes: 3003