Article View: news.software.readers
Article #128546Re: SLRN: choice of editor and word wrapper
From: Blinky the Shark
Date: Mon, 14 Jul 2003 06:35
Date: Mon, 14 Jul 2003 06:35
41 lines
2498 bytes
2498 bytes
Mike Vanecek wrote:
> On Mon, 14 Jul 2003 02:00:35 GMT, SINNER wrote:
>> Andrew Preater Wrote in news.software.readers, on Sun, 13 Jul 2003 18:57:21 +0100:
>> [...]
>>>> 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 go for good old gqap or gqip. I recall some discussion in n.s.r
>>> about reformatting everything in a message body (i.e. not signature or
>>> headers) in vim. This was what was suggested for your vimrc:
>>> map <f5> gg/^$<CR>V/^-- $<CR>{gq`^
> Got an error when I tried to use it. Would someone please decode the
> map. I tried to debug it, but obviously did not understand the map
> syntax in spite of reading man.
gg go to first line
/ search for
^$ a line with thing but the cf/lf (nothing between start and end)
V switch to visual mode, line basis
/ search for
--[space] a legal sig delimiter (-- ) with nothing else on the line
{g format what was just highlighted in visual mode
~^ return cursor to where it started (I *think* -- and it was me who
added those two characters to Tim H.'s code <g>)
--
Blinky Linux RU 297263
Spam: The Boulder Pledge http://snurl.com/boulder
All In The Family http://snurl.com/familything
Technical Details
Message-ID:
<slrnbh4jpl.25r.no.spam@adam.blinkynet.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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1References:
<slrnbh2gru.1f2.lhaber@lawrence-habers-computer.local> <1368u-cq5.ln1@news.gates_of_hell.INVALID> <slrnbh37c1.2ts.preater@preater.com> <jef9u-ji2.ln1@news.gates_of_hell.INVALID> <e7n9u-ac2.ln1@news.invalid.99computer>Show Full Headers
Complete Article Headers
Message-ID: <slrnbh4jpl.25r.no.spam@adam.blinkynet.net> Subject: Re: SLRN: choice of editor and word wrapper Date: Mon, 14 Jul 2003 06:35:33 +0000 From: Blinky the Shark <no.spam@box.invalid> References: <slrnbh2gru.1f2.lhaber@lawrence-habers-computer.local> <1368u-cq5.ln1@news.gates_of_hell.INVALID> <slrnbh37c1.2ts.preater@preater.com> <jef9u-ji2.ln1@news.gates_of_hell.INVALID> <e7n9u-ac2.ln1@news.invalid.99computer> 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!border1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone-sf.pbi.net!129.250.175.17!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews1 Newsgroups: news.software.readers Organization: http://blinkynet.net Lines: 41 NNTP-Posting-Host: p-443.newsdawg.com X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%; )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E User-Agent: slrn/0.9.7.4 (Linux)