Article View: news.software.readers
Article #165489Re: vim macro for [slrn] -was- Re: Way to remove ad sig?
From: W. Citoan
Date: Sun, 17 Apr 2005 16:52
Date: Sun, 17 Apr 2005 16:52
43 lines
3329 bytes
3329 bytes
Blinky the Shark wrote:
> W. Citoan wrote:
>
> > Blinky the Shark wrote:
>
> >> >:nmap <F9> gg/^>-- <CR>maG?^-- <CR>kv`ad
>
> >> That works for this kind of quoting: >--
>
> >> But if quoting editor adds a space: > --
>
> >> the macro doesn't pick it up. Anyone got a simple tweak for
> >> making it find either style of quoting with its first search?
>
> > :nmap <F9> gg/^>\s\=-- <CR>maG?^-- <CR>kv`ad
>
> > Will match 0 or 1 spaces between the ">" and "-".
>
> > If you want to match more than 1, change the "\=" to "*" for any
> > number of whitespace characters or replace it with "\{,m}" where m
> > (your choice of actual number) is the maximum number to match if you
> > want to limit it.
>
> And note that I wrote the original, there, per a request for deleting
> from the first once-quoted sig delimiter, as requested. Here, if
> it's a *valid* sig delimiter, then it should not be present. I think
> requester may have meant the first *invalid* sig delimiter (probably
> "--[NO space]". If so first search should not include the space
> after the pair of hyphens. Can't check for *all* of the *in*valid
> not-delimiters that bozos come up with instead of real ones.
I took it as the original sig deliminator was valid, but the quoting
newsreader didn't properly remove it, but as I've seen both:
:nmap <F9> gg/^\(>\s\=\)\+--\s\=<CR>maG?^-- <CR>kv`ad
That should match both cases as well as cases with multiple levels of
quoting (i.e. ">>--" and variations with spacing).
- W. Citoan
--
That little world, the human mind.
-- Samuel Rogers
Technical Details
Message-ID:
<slrnd6552j.31g.wcitoan@wcitoan-via.supernews.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!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!sn-xit-03!sn-xit-12!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<Xns9634AA90AC0A8sultanofcyberhotmail@38.119.71.210> <slrnd5j8tt.5jc.no.spam@thurston.blinkynet.net> <Xns9634C961159B8sultanofcyberhotmail@38.119.71.210> <slrnd5jk5r.92e.dcmoose@moosemeat.ca.INVALID> <slrnd5loeq.4bf.pjr@nntp.petitmorte.net> <slrnd5lpre.564.no.spam@thurston.blinkynet.net> <slrnd5lsfi.4bf.pjr@nntp.petitmorte.net> <slrnd5lvqg.564.no.spam@thurston.blinkynet.net> <slrnd5m2j2.4bf.pjr@nntp.petitmorte.net> <slrnd5m3do.eo7.no.spam@thurston.blinkynet.net> <slrnd5m70r.4bf.pjr@nntp.petitmorte.net> <slrnd61ipg.g3c.no.spam@thurston.blinkynet.net> <slrnd62ul0.sar.no.spam@thurston.blinkynet.net> <slrnd63d0f.19g.wcitoan@wcitoan-via.supernews.com> <slrnd63l6j.5b2.no.spam@thurston.blinkynet.net>Show Full Headers
Complete Article Headers
Message-ID: <slrnd6552j.31g.wcitoan@wcitoan-via.supernews.com> Subject: Re: vim macro for [slrn] -was- Re: Way to remove ad sig? Date: Sun, 17 Apr 2005 16:52:33 -0000 From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com> References: <Xns9634AA90AC0A8sultanofcyberhotmail@38.119.71.210> <slrnd5j8tt.5jc.no.spam@thurston.blinkynet.net> <Xns9634C961159B8sultanofcyberhotmail@38.119.71.210> <slrnd5jk5r.92e.dcmoose@moosemeat.ca.INVALID> <slrnd5loeq.4bf.pjr@nntp.petitmorte.net> <slrnd5lpre.564.no.spam@thurston.blinkynet.net> <slrnd5lsfi.4bf.pjr@nntp.petitmorte.net> <slrnd5lvqg.564.no.spam@thurston.blinkynet.net> <slrnd5m2j2.4bf.pjr@nntp.petitmorte.net> <slrnd5m3do.eo7.no.spam@thurston.blinkynet.net> <slrnd5m70r.4bf.pjr@nntp.petitmorte.net> <slrnd61ipg.g3c.no.spam@thurston.blinkynet.net> <slrnd62ul0.sar.no.spam@thurston.blinkynet.net> <slrnd63d0f.19g.wcitoan@wcitoan-via.supernews.com> <slrnd63l6j.5b2.no.spam@thurston.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!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!colt.net!news-lond.gip.net!news.gsl.net!gip.net!news.tele.dk!news.tele.dk!small.news.tele.dk!sn-xit-03!sn-xit-12!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.readers Organization: Posted via Supernews, http://www.supernews.com User-Agent: slrn/0.9.7.4 (Win32) X-Complaints-To: abuse@supernews.com Lines: 43