Article View: news.software.readers
Article #128682Re: SLRN: choice of editor and word wrapper
From: Rudy Taraschi
Date: Tue, 15 Jul 2003 16:47
Date: Tue, 15 Jul 2003 16:47
29 lines
2382 bytes
2382 bytes
SINNER wrote:
> for any lines that are not wrapped correctly for whatever reason
> (The above should make your lines wrap at 72) you can SHIFT-V
> which will put you in visual mode and select full lines and then
> SHIFT-Q to re wrap poorly wrapped text.
I have a much quicker, one-key alternative. If you're on a unix
box, you probably have 'fmt' installed. Just map it to a key and
let vi(m) pipe through 'fmt'. An example is:
map F !}fmt
}z.
which will reformat from the current line to the end of the
paragraph, and set your cursor on the next paragraph.
This works for straight text, but falls apart for quoted text. Run
out and look for a utility called 'par', which is like 'fmt' on
steroids. Install it, and replace 'fmt' with 'par' in the above
map statement and you're set.
Slight mod: change the !} with !G to re-format till end of file.
Cheers!
--
Rudy Taraschi - rüdÿ
at
cae.com
Technical Details
Message-ID:
<slrnbh8bbo.2dk.rudy@142.39.20.3>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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!diablo.voicenet.com!wesley.videotron.net!news.cae.ca!not-for-mailReferences:
<slrnbh2gru.1f2.lhaber@lawrence-habers-computer.local> <1368u-cq5.ln1@news.gates_of_hell.INVALID>Show Full Headers
Complete Article Headers
Message-ID: <slrnbh8bbo.2dk.rudy@142.39.20.3>
Subject: Re: SLRN: choice of editor and word wrapper
Date: Tue, 15 Jul 2003 16:47:56 +0000
From: Rudy Taraschi <rudy@this.address.is.invalid>
References: <slrnbh2gru.1f2.lhaber@lawrence-habers-computer.local> <1368u-cq5.ln1@news.gates_of_hell.INVALID>
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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed1.easynews.com!easynews.com!easynews!diablo.voicenet.com!wesley.videotron.net!news.cae.ca!not-for-mail
Newsgroups: news.software.readers
Organization: CAE
Lines: 29
NNTP-Posting-Host: l0685.cae.ca
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: dns3.cae.ca 1058287676 26402 142.39.81.72 (15 Jul 2003 16:47:56 GMT)
X-Complaints-To: usenet@news.cae.ca
NNTP-Posting-Date: 15 Jul 2003 16:47:56 GMT
X-Face: (WrD*bX*:"j.$(|G/9Wky*T3hTx&09g_~|H3=5[WK$o8oQHIuw0@'Z.-{uz+O{/OQ<:yDquEpI!LJG_jn#a+=drl'V:8{a\WI*iSDIU9xV`bHsN+[y_P1QN-,=fTY4dP:5*z8G?;
=v(*g0As)Xc^t6p#OO6d05Tg/}i,).V-O; |[PH/T9*bcANx/A>m)cVi_Y
X-Files: The truth is out there
User-Agent: slrn/0.9.7.4/rt (CYGWIN_NT-5.1)