🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #165461

Re: vim macro for [slrn] -was- Re: Way to remove ad sig?

#165461
From: W. Citoan
Date: Sun, 17 Apr 2005 00:55
25 lines
2290 bytes
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.

- W. Citoan
-- 
Half our mistakes in life arise from feeling where we ought to think,
thinking where we ought to feel.
-- Churton Collins
Technical Details
Message-ID: <slrnd63d0f.19g.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.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!usenet.INS.cwru.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-03!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrnd63d0f.19g.wcitoan@wcitoan-via.supernews.com>
Subject: Re: vim macro for [slrn] -was- Re: Way to remove ad sig?
Date: Sun, 17 Apr 2005 00:55:49 -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>
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.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!usenet.INS.cwru.edu!newsfeed.berkeley.edu!ucberkeley!sn-xit-03!sn-xit-08!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: 25