🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #65481

Re: [slrn/Vim] no colors editing postponed articles

#65481
From: Smylers
Date: Mon, 11 Sep 2000 10:13
56 lines
2782 bytes
In news.software.readers, Alessandro Airaghi <a.NOSPAM@tiscalinet.it>
uttered something along the lines of:

> --- ~/.vimrc -----------------------------------------------------------
> let myfiletypefile = "~/myfiletypes.vim"
> syntax on
> --- ~/myfiletypes.vim --------------------------------------------------
> augroup filetype
> au! BufRead,BufNewFile slrn/postponed/*  set filetype=mail
> augroup END
> ------------------------------------------------------------------------

[Cross-posted, cos this seems as much a `Vim' issue as an `SLRN' one.]

That looks very similar to what I've got, and that works for me.

> Now:
> 
> 1. I edit a postponed article with vim:
> 
> $ vim ~/slrn/postponed/ciccia    ---> OK, it's coloured
> 
> 2. I edit a postponed article with vim *using SLRN* ([Esc] [p] in group
>    window). Article isn't coloured, I have to give the following command
>    
> :syntax on
> 
> everytime I edit article.

How very odd.  In the latter case, is syntax not on, or is it on but
failing to recognize the file type?  To discover which, try:

  :echo syntax_on
  :echo b:current_syntax
  :set filetype?

Since the above command works manually from a shell prompt, it's got to
work if issued by `SLRN', surely?  That suggests that `SLRN' is actually
calling a subtly different command -- what's your editor_command line
from .slrnrc?

Could the path used be causing a problem -- can you find a way of making
it _not_ work from the command line by using a relative path from your
home directory (or your slrn directory, or another directory) or using a
full absolute pathname instead of "~/"?

If so, try sticking "*/" at the start of the filename pattern in the
autocommand; I've no idea if this'll be any help, but I appear to have
it in mine so it might be worth a guess.

Smylers
-- 
Using `Vim' with `SLRN':
  http://www.stripey.com/vim/slrn.html

Technical Details
Message-ID: <2000Sep11.101344.9115@leeds.ac.uk>
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!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!195.40.0.160.MISMATCH!easynet-tele!easynet.net!server5.netnews.ja.net!leeds.ac.uk!news
References: <slrn8rmeur.19n.a.NOSPAM@localhost.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <2000Sep11.101344.9115@leeds.ac.uk>
Subject: Re: [slrn/Vim] no colors editing postponed articles
Date: Mon, 11 Sep 2000 10:13:44 +0000
From: Smylers-usenet@stripey.com (Smylers)
References: <slrn8rmeur.19n.a.NOSPAM@localhost.localdomain>
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!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!195.40.0.160.MISMATCH!easynet-tele!easynet.net!server5.netnews.ja.net!leeds.ac.uk!news
Newsgroups: news.software.readers,comp.editors
Originator: pus@linux.leeds.ac.uk
NNTP-Posting-Host: cslin026.leeds.ac.uk
X-Complaints-To: abuse@comp.leeds.ac.uk
User-Agent: slrn/0.9.5.6 (UNIX)
Lines: 55