🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #137161

Re: [slrn][vim] Macro Not Working

#137161
From: Sven Guckes
Date: Sun, 09 Nov 2003 06:25
31 lines
2012 bytes
* Blinky the Shark <no.spam@box.invalid>:
> Can anybody figure out why this keymapping...
>
> au BufNewFile,BufRead ~/.article,~/.followup :nmap <F5> gg/^$<CR>V/^-- $<CR>{gq`^
>
> ...fails with this in .slrnrc?

so - what kind of failure is this?
does this fail to assign the mapping completely?
does this fail to assing the mapping in parts?
does the mapping itself "fail" when executed later on?
and what do you mean by "fail in .slrnrc"?
vim command are no executed when
slrn reads its starup file, anyway.

> It apparently hangs after selecting the body
> (up to the sig delimiter) of the message.

so you expect the mapping to
be both defined *and* executed?

> set editor_command "gvim -f +'/^$/ +1' +'colo elflord' +'set comments=nb:> ' +noh +'set tw=72' +%d '%s'"

why don't you set all this via the filetype?
"with filetype slrnrc source this setup file"
hint: read ":help filetype" - homework!

then all you need is this:
  set editor_command "gvim -f +%d '%s'"

Sven
Technical Details
Message-ID: <2003-11-09T06-16-35@guckes.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!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!pima.hostsharing.NET!not-for-mail
References: <slrnbqrdag.p32.no.spam@thurston.blinkynet.net>

Show Full Headers
Complete Article Headers
Message-ID: <2003-11-09T06-16-35@guckes.net>
Subject: Re: [slrn][vim] Macro Not Working
Date: Sun, 09 Nov 2003 06:25:28 +0000
From: Sven Guckes <usenet@guckes.net>
References: <slrnbqrdag.p32.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!news5.aus1.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!pima.hostsharing.NET!not-for-mail
Newsgroups: news.software.readers
Lines: 31
Reply-To: Sven Guckes <usenet-reply@guckes.net>
NNTP-Posting-Host: pima.hostsharing.net (212.42.230.40)
X-Trace: news.uni-berlin.de 1068359128 50061599 212.42.230.40 (16 [44059])
Mail-Copies-To: guckes-usenet-cc@guckes.net
User-Agent: slrn/0.9.7.4 (Linux)