🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #206068

Re: [slrn] Success with gvim!

#206068
From: Peter J Ross
Date: Tue, 18 Sep 2007 20:15
58 lines
3252 bytes
In news.software.readers on 18 Sep 2007 18:10:58 GMT, Blinky the Shark
<no.spam@box.invalid> wrote:

> Kurt Steinhauser wrote:
>
>> On Mon, 17 Sep 2007 20:03:12 +0000, Blinky the Shark wrote:
>> 
>>> Kurt Steinhauser wrote:
>>> 
>>>> Hokay, I went back and found my mistake. I've now set my
>>>> slrnrc to use gvim, with a wrap at 72 characters. This is per
>>>> Blinky's earlier post. I hope that Andrew is Ok with the
>>>> notion that I'm going to work with givm instead of vi(m).
>
> If your editor command in .slrnrc includes the tw setting, as does 
> mine and as would have the command I gave you for that, the line 
> length setting for slrn composition would be passed to gvim when 
> slrn called it.  That way *all* of your use of gvim (it's not just 
> limited to slrn posts <g>) don't require that setting.  My primary 
> system is not within reach right now, but I believe my command looks 
> like:
>
> set editor_command "gvim -f '+set tw=72' '%s'"

Mine looks like this:

	set editor_command "vim -c %d %s"

I like to keep everything in the same window, so I don't use gvim.
It's all a mater of personal preference.

But I have all this in my .vimrc:

#v+
augroup slrn
	autocmd VimEnter *.score set nowrap
	autocmd VimEnter .slrnrc set nowrap
	" don't wrap lines in config files

        autocmd VimEnter .{article,letter,followup} set tw=70
	" don't annoy people with long lines

        autocmd VimEnter .{article,letter,followup} set noai
	" I can't remember what this does :-)

        autocmd VimEnter .letter :2s/\(From: \).*/\1Peter J Ross <pjr.spam@gmail.com>/
        autocmd VimEnter .letter :6s/^Reply-To:.*\n//
	" send email from my real address, not from example.invalid

        autocmd VimEnter .{followup,letter} if line('.') != 1 | normal gq${j
	" move the cursor to edit replies more conveniently
	" I don't understand how this one works because I copied it
augroup END
#v-


-- 
PJR :-)
Technical Details
Message-ID: <slrnff0cf8.c72.pjr@pjr.gotdns.org>
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!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!mauve.octanews.net!be1-003.octanews.net!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
References: <fcm0d5$pf7$1@registered.motzarella.org> <Xns99AE84C90953Abnooz@maryann.blinkynet.net> <buidnUeQYJ-pInLbnZ2dnUVZ_jednZ2d@insightbb.com> <Xns99AF71C28D793bnooz@maryann.blinkynet.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnff0cf8.c72.pjr@pjr.gotdns.org>
Subject: Re: [slrn] Success with gvim!
Date: Tue, 18 Sep 2007 20:15:36 +0000
From: Peter J Ross <pjr@example.invalid>
References: <fcm0d5$pf7$1@registered.motzarella.org> <Xns99AE84C90953Abnooz@maryann.blinkynet.net> <buidnUeQYJ-pInLbnZ2dnUVZ_jednZ2d@insightbb.com> <Xns99AF71C28D793bnooz@maryann.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!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!mauve.octanews.net!be1-003.octanews.net!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: none
Reply-To: Peter J Ross <pjr.spam@gmail.com>
User-Agent: slrn/0.9.8.1pl2.1 (Linux)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 58
NNTP-Posting-Date: 18 Sep 2007 15:15:36 CDT
X-Trace: DXC=[J?kE;
 nWg\1KM7IbY\Pj?6]AGWjF5PjP9465Ue@WB_5?YTaMZDUYNJ326Z<EbT:a\5lV3mi\haFg8[\J[m5T^075QGmJfFC5a]=