🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #53980

Re: Vi Behaving Strangely ...

#53980
From: Rofi
Date: Fri, 12 Nov 1999 00:00
53 lines
2327 bytes
On 12 Nov 1999 08:55:26 GMT, Desmond Coughlan <desmond@tortue.coughlan.net>
wrote:
>I use vi

(Tempted to say something about the one and only true editor, but
thought better of it ;-) )

> to post new and follow-up articles, and when I've finished, I
>save the file and exit, by typing :wq  However, vi tells me that there
>are still three files left to edit.

I know the feeling, I've had a similar problem as well. 

>
>The only way I can force it to let me send the article, is with :wq!
>
>OK, so it's not really the end of the world, but I'm curious as to a) how
>to stop it, and b) why it happens.
>

Well, I was having this problem with slrn and vi as well.  I'm assuming you
posted with the newsreader you're having problems with :-).  In the .slrnrc 
file I had the line.

set score_editor_command "vi '%s' +%d" 

so that I could edit the slrn score file using vim (I've aliased vi to 
vim).  When slrn uses this score_editor_command it doesn't use the alias
so it was actually using vi and I was having similar problems as yourself
with multiple files etc.  So my solution was to replace vi with vim, but ...

So ..... if you are actually attempting to use vi try playing around with
what the variable score_editor_command is set to.


set score_editor_command "vi '%s' +%d"  % for me this edited 2 files

set score_editor_command "vi '%s' -g %d -tmp"  % this edited 4 !
                                               % and this what the line
                                               % would look like if you
                                               % just replace jed with vi


Hope this helps

Rofi

-- 
Ifor Gaukroger, Rofi, Eve ... If ? 
:wq
( d'oh not in vi :-) )

Technical Details
Message-ID: <80h5mu$e6f$1@whatsit.aston.ac.uk>
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!not-for-mail
References: <slrn82nljo.9f.desmond@tortue.coughlan.net>

Show Full Headers
Complete Article Headers
Message-ID: <80h5mu$e6f$1@whatsit.aston.ac.uk>
Subject: Re: Vi Behaving Strangely ...
Date: Fri, 12 Nov 1999 00:00:00 +0000
From: gaukrogi@aston.ac.uk (Rofi)
References: <slrn82nljo.9f.desmond@tortue.coughlan.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!not-for-mail
X-Deja-AN: 547747136
Organization: Aston University
User-Agent: slrn/0.9.5.7 (UNIX)
Newsgroups: news.software.readers