🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #125685

Re: PING: Blinky - [slrn] and vim

#125685
From: Blinky the Shark
Date: Sat, 31 May 2003 19:19
37 lines
2024 bytes
SINNER wrote:

> I have been using that little Bufread command in my ~/.vimrc that you
> kindly shared some time back:

> "Clean the article au BufRead ~/.followup :% s/^>\A*$//

> Can you help me to understand what is going on here? I tried :help
> bufread and :help au 

> but the part I am having a problem deciphering is after the filename.
> It gets rid of lines that contain only a number:

<missing in action>

> as above, it also removes 'separators' as:

<poof!>

> So perhaps understanding it can help me to alter it to my needs.
> Thanks again for sharing!

It's supposed to remove any lines that contain greater-thans but no
alpha characters, and does.  Looks like the \A* is saying "no alpha
characters" (NOT one or more).  The form is: substitute/forthis/this/.
So:

sub / for lines starting with ">" and having no letters / nothing /

^ = beginning of line
$ = end of line

-- 
Blinky                        Linux Registered User 297263
esr on SCO Suit:                  http://snurl.com/esr_sco
About Spam And "Remove Me"       http://snurl.com/removeme 
Technical Details
Message-ID: <slrnbdi017.78l.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2
References: <mc2nq-1t1.ln1@news.gates_of_hell.INVALID>

Show Full Headers
Complete Article Headers
Message-ID: <slrnbdi017.78l.no.spam@adam.blinkynet.net>
Subject: Re: PING: Blinky - [slrn] and vim
Date: Sat, 31 May 2003 19:19:08 +0000
From: Blinky the Shark <no.spam@box.invalid>
References: <mc2nq-1t1.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!tethys.csu.net!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2
Newsgroups: news.software.readers
Organization: http://blinkynet.net
Lines: 36
NNTP-Posting-Host: p-435.newsdawg.com
X-Face: "_{Qe=@t<xdpA\~AFZvKyH^US#`&,/~#9T=}T45xVc+f"*Ollr1CeJ_KrgjR+jMH&/C.dQ:t1Pb9v(+f=7o0A6/nb62g|L?Z9~.V52oH3y9ul-=p]=Qsa{$&1d`ck'
User-Agent: slrn/0.9.7.4 (Linux)