🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #59608

Re: slrn - message-id generation with vim autocommand

#59608
From: Thomas Köhler
Date: Fri, 24 Mar 2000 00:00
51 lines
2574 bytes
Sven Guckes <guckes@math.fu-berlin.de> wrote:
> I intend to add this to my slrnrc.  Comments?
> 
> FAQ: How do I generate the Message-ID within SLRN?
> Answer:
[apart from the things other people allready pointed out]
> This line was generated with this simple "autocommand":
> 
>   au BufNewFile,BufRead  \
>   ~/.article,~/.followup \
>   let @"="Message-ID: <".strftime("%Y%m%d%H%M")."@guckes.net>\n"\
>   |exe 'norm 1G}""P'
>
> Yes, this autocommand is broken across lines
> where the backslashes ('\') at the end of
> the line indicate a "continuation line".
> It can probably be made easier to read
> but I am too tired now to do that.  ;-)

I don't believe this will work (:-)
From vim's help about line-continuation:

							*line-continuation*
Long lines in a ":source"d Ex command script file can be split by inserting
a line continuation symbol "\" (backslash) at the start of the next line.
There can be white space before the backslash, which is ignored.

[...]

Rationale: Most programs work with a trailing backslash to indicate line
continuation.  Using this in Vim would cause incompatibility with Vi.  For
example for this Vi mapping:
>	map xx  asdf\
Therefore the unusual leading backslash is used.

> Hey, comp.editors - comments anyone?

Of course. Place the \ at the beginning of the next line (;-)

> Sven  [now everyone know how long it takes me to write a post - dang!]

CU,
Thomas

-- 
 Thomas K�hler Email:   jean-luc@picard.franken.de     | LCARS - Linux
     <><        WWW:     http://jeanluc-picard.de      | for Computers
                IRC:             jeanluc               | on All Real
               PGP public key available from Homepage! | Starships

Technical Details
Message-ID: <slrn8dm9l7.jrp.jean-luc@picard.franken.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.editors.mbox.zip!not-for-mail
References: <200003230532@guckes.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8dm9l7.jrp.jean-luc@picard.franken.de>
Subject: Re: slrn - message-id generation with vim autocommand
Date: Fri, 24 Mar 2000 00:00:00 +0000
From: jean-luc@picard.franken.de (Thomas Köhler)
References: <200003230532@guckes.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.editors.mbox.zip!not-for-mail
X-Deja-AN: 601673666
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=iso-8859-1
X-Trace: picard.franken.de 953886375 20346 193.141.110.75 (24 Mar 2000 08:26:15 GMT)
Organization: NCC-1701-D
Mime-Version: 1.0
User-Agent: slrn/0.9.6.2 (Linux)
Newsgroups: news.software.readers,comp.editors