🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Desmond Coughlan Fri, 12 Nov 1999 00:00
Vi Behaving Strangely ...
#53981
Author: Desmond Coughlan
Date: Fri, 12 Nov 1999 00:00
17 lines
1255 bytes
I use vi 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.

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.

Thanks.  :-)

-- 
Desmond Coughlan		|Administrateur Systeme
desmond@coughlan.net		|UNIX, Linux, NT
http://212.198.64.228/

Re: Vi Behaving Strangely ...
#53964
Author: Sven Guckes
Date: Fri, 12 Nov 1999 00:00
20 lines
1256 bytes
* Desmond Coughlan <desmond@tortue.coughlan.net>:
> I use vi 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.
> 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, how do you start vi?
We cannot see your setup.
So you will have to find
the solution yourself.

Sven

Re: Vi Behaving Strangely ...
#53973
Author: Sylvan Butler
Date: Fri, 12 Nov 1999 00:00
19 lines
1672 bytes
On 12 Nov 1999 13:46:06 GMT, Rofi <gaukrogi@aston.ac.uk> wrote:
>set score_editor_command "vi '%s' +%d" 

I just use "editor_command" rather than seperate for each type of
editing...  My command string is:  "vim +%d %s"

Notice the "+%d" precedes the %s.  Also I haven't put the single quotes
around the %s as I don't use filenames with spaces, but you could
probably add them if you wanted.

sdb
-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: Vi Behaving Strangely ...
#53980
Author: 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 :-) )

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads