🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #48332

Re: Problems posting with tin

#48332
From: Alan Mackenzie
Date: Sun, 02 May 1999 00:00
67 lines
3359 bytes
krass1@my-dejanews.com wrote:
> When I attempt to post an article with the UNIX program "tin", it only allows
> me to specify the subject.  Once I hit "Enter", it doesn't allow me to write
> the actual article -- it just asks if I want to send it, edit it, or quit.  I
> can't edit it either.  I'm thinking that I need to somehow link an editor to
> the program, but since I'm not a Unix expert yet, I'm not sure how to do it. 
> Can somebody tell me what I need to do in order to post with tin?

Ah, the dreaded vi!

What tin does is to invoke the standard Unix editor, vi. It's one of
these programs that's much easier to use (having learnt it) than to learn
how to use. I have been told (and I'm sure it's true), that it's a
delight to use. (I've just started to learn it).

You could avoid vi altogether by setting the EDITOR environment variable
to something else, preferably in your .profile, e.g.

    export EDITOR=emacs
or
    setenv EDITOR=emacs
(depending on which shell you are using).

(Note that even though emacs is my favourite editor (in fact it's my
alltime favourite program of any sort), I don't recommend it here,
because for me it seems to be over the top for simple news posts. Your
mileage may vary, of course.)

You can find introductions to vi in many places:
(i) in the manuals of the better Linux distributions (e.g. S.u.S.E.);
(ii) in some general books: (e.g. "Linux in a Nutshell by J.Hekman", or
"Running Linux" by M.Welsh and L.Kaufman);
(iii) in a book specifically about vi;
(iv) in the online help. (Type <:help> in command mode.)

To get you started, note that vi works in two modes, INSERT mode and
COMMAND mode (which is where you start). (Actually, COMMAND mode has
an extended mode as well, see below). A minimum working set of commands
follows:

The following commands (case sensitive) will get you into insert mode:
<i> "Insert before current position"
<a> "Insert after current position"

To get back to COMMAND mode, press <ESC>.

Here are some convenient commands:
<x> "delete the character under the cursor"
<dd> "delete the entire line the cursor is in" 
<J> "join the next line onto the end of this one"

Here are some convenient extended commands:
<:q> "quit, without having changed the buffer"
<:q!> "quit, discarding changes"
<:w> "Save the changes"
<:wq> ... (work it out!)
<:help> ... (look this one up in the online help facility!)

Enjoy!

-- 
Alan Mackenzie (Munich, Germany)
Email: ayeseeemm@emmyousee.deeeee; to decode, replace "aye" by 'a', "see"
by 'c', etc.


Technical Details
Message-ID: <7c2ig7.t7.ln@acm.acm>
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: <7ggbmt$sre$1@nnrp1.dejanews.com>

Show Full Headers
Complete Article Headers
Message-ID: <7c2ig7.t7.ln@acm.acm>
Subject: Re: Problems posting with tin
Date: Sun, 02 May 1999 00:00:00 +0000
From: Alan Mackenzie<none@all.de>
References: <7ggbmt$sre$1@nnrp1.dejanews.com>
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: 473229810
X-Complaints-To: news-admin@muc.de
X-Trace: marvin.muc.de 925666980 22717 193.149.49.134 (2 May 1999 17:43:00 GMT)
Organization: muc.de e.V. -- private internet access
User-Agent: tin/pre-1.4-980618 (UNIX) (Linux/2.0.35 (i686))
NNTP-Posting-Date: 2 May 1999 17:43:00 GMT
Newsgroups: news.software.readers