No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help
View Responses


Grex Info Item 7: Changing finger information
Entered by jeffk on Mon Nov 9 04:25:42 UTC 1992:

How do I update the information printed out by the finger program?  I.e. if
my phone number has changed, I'd like to update it.

47 responses total.



#1 of 47 by aa8ij on Mon Nov 9 07:20:30 1992:

 Type  vi .plan and type what you want.

full name: Jim Reuter
registered: Thu Apr  2 22:57:39 1992 on tty /dev/tty03 at speed 1200
address:
        P.O.Box 4009
        Ann Arbor MI 48105
telephone: 313-663-7876
occupation:
        Transportation Consultant
        Piano Technician
        Income Tax preparer
        Professional Driver
        Mr-fix-it
computers:
        Heath H-89
birthdate: 11/27/60
sex: m
interests:
        Amatuer radio
        Classical Music
        Films
        cooking
        reading
        tinkering(exploring things that are unknown)
        listening to the radio
Found out about us from:
          Steve

here is mine.


#2 of 47 by davel on Mon Nov 9 12:27:26 1992:

If you have never used vi, do *not* do this until you have checked out the
man or (better yet) have someone at hand who knows it.  (I use it all the
time now, but you *need* help the first few times.)


#3 of 47 by aa8ij on Mon Nov 9 17:38:32 1992:

 
   I agree. vi is fun only when you know it. Play few games of nethack or
hack and you'll have the hjkl moves down in no time. I think the key to
knowing vi is remembering if you're in command mode or insert mode. Fortunatly
for me, my terminal beeps at me if I try to write while still in command
mode. (I use an ADDS Viewpoint, which I am told loves unix).


#4 of 47 by power on Mon Nov 9 22:01:22 1992:

  Jove is a little easier to pick up, I think, than vi... Jove even has
it's own tutorial!  That's right, do !teachjove, and it'll tell you
everything you ever wanted to know about jove, and let you try some of
it out, while you're at it!  Jove is also nice in that it can be set up
to act almost as if it were actually running on your own system -
recognizing arrow keys, etc.


#5 of 47 by remmers on Tue Nov 10 12:19:37 1992:

(Not to start an editor war or anything, but vi can also be configured
to make arrow and keypad keys (like PgUp, End, etc.) do what you'd like.)


#6 of 47 by davel on Tue Nov 10 22:18:34 1992:

Please steer me to this information - or do I have to change TERMs to make
it work?


#7 of 47 by aa8ij on Wed Nov 11 00:40:33 1992:

 
 Re 4. I am 3/4 of the way through the teachjove tutorial and I think it's
pretty cool. I have learned enough to even begin using it. (Although it's
hard to give up vi. I think that everyone should become familiar with 
the editors here... If you've come this far, (logging on to grex) go ahead
and have fun... you really can't hurt anything by doing it.


#8 of 47 by power on Wed Nov 11 01:21:44 1992:

    Yeah, but jove doesn't have all the silly modes and stuff, and is a LOT
easier to learn... for me, anyway...


#9 of 47 by davel on Wed Nov 11 02:37:03 1992:

(I *had* to learn vi - it's what was available somewhere else, & it's (I hope)
going to be there on anything unix.  I've also got a couple of PD PC ports,
so I can even use it there if I didn't have something better.  Now that
I've learned it, though, I like it pretty well; but some things I take for
granted in PC editors are much harder to do without messing up in vi.)

Haven't had need to learn jove, so this should *not* be construed as
editor wars continued.


#10 of 47 by aa8ij on Wed Nov 11 05:00:39 1992:

   I did it. I changed my default editor to jove as well as my mail
editor. (nothing like jumping from the frying pan right into the fire).
I'll report my likes/dislikes back to you in two weeks.


#11 of 47 by remmers on Wed Nov 11 22:01:24 1992:

Re #6:  For certain TERMs (e.g. vt100 on this system) the cursor keys
are specified, and the up, down, right, & left arrow keys should work
in vi (in command mode only).  For other special function keys (like
F1 or PgDn on the IBM-style keyboard), you have to tell vi what 
character sequence is sent by the key and what you want vi to do when
it receives that sequence.  This is done using the "map" command,
which is one of several vi commands that define macro substitutions.

For example, if you're using a VTnnn type terminal or emulator (with
nnn >= 100), then the "Del" key on the numeric keypad should send the
3-character sequence "<ESC>On".  If you want the Del key to delete
the character at the cursor (as it does in most PC editors), you'd give
vi the command

                map ^[On  x

to tell vi that you want that sequence to be equivalent to vi's "x"
command.  (The ^[ denotes a *real* escape character, not a ^ followed
by a [).

Put map commands in a file named .exrc in your home directory.  Then
vi will execute them every time you start it up.

A map command is effective only in command mode.  To define text-entry-
mode macros, use the map! command instead.  With a little ingenuity it's
possible to get vi to do things (like moving the cursor with the arrow
keys) that it normally does only in command mode.  For example

                map! ^[On  ^V ^[xxi

programs the Del key to delete the character at the cursor when pressed
in text-entry mode.  (^V denotes a (real) control-V)

I've put some documentation on vi macros in the directory
/usr/local/doc/vi.  The file "macro-guide" contains an excellent
discussion of macros and some other advanced vi features.

Exercise for the curious:  When vi receives "^[On" while in text-entry
mode, how does it know that you typed the Del key rather than the three
keys ESCAPE, "O", and "n" separately? You're sending the same sequence
of ascii characters in both cases.  It has to make the distinction
somehow, since ESCAPE, O, n typed separately leave text-entry mode,
and then open a new line containing "n" -- an entirely different
effect.)


#12 of 47 by jeffk on Thu Nov 12 00:21:25 1992:

Thanks a heap, remmers.  This is the kinda stuff I want to see in this
particular conference.


#13 of 47 by kentn on Thu Nov 12 04:34:21 1992:

I could probably live with vi after reassigning most of the keys...
has anyone cooked up any interesting keyboard layouts for vi (other
than the "interesting" one that comes with it ;) ?


#14 of 47 by popcorn on Thu Nov 12 05:57:45 1992:

This response has been erased.



#15 of 47 by jeffk on Fri Nov 13 02:50:59 1992:

where do you set the editor type for your mail?  I've managed to get Picospan
to use vi, but not my mail.


#16 of 47 by remmers on Fri Nov 13 04:13:20 1992:

Hmmm... the line "setenv EDITOR vi" in your .login file should work for
both.  What editor comes up in mail?  You might want to put the line
"setenv VISUAL vi" in your .login as well.

Re #14:  Right -- it's timing.  You may go to the head of the class.
If there's more than one second between characters, vi assumes that you
typed separate keys; if less, that the characters were sent by a single
keystroke.  This tends not to work so well if you're connected over a
network where you can get unpredictable delays between characters.
Sometimes I connect to Grex by telnetting to Merit and using the dialout
modems.  This tends to result in a slow connection with long delays, and
I find that vi often misinterprets the function keys.  Jove (and Jove's
parent, GNU Emacs) work better in this regard, as they don't using
timing to recognize function keys.


#17 of 47 by aa8ij on Fri Nov 13 05:01:09 1992:

 
 as a matter of fact, you would t"o" to get to the options screen
and just put "vi" in there where is says "editor".


#18 of 47 by jeffk on Sat Nov 14 02:46:07 1992:

re #16:  Nope the setenv things didn't work.  Any more suggestions?  Is #17
related to this question or #14's?



#19 of 47 by aa8ij on Sat Nov 14 03:18:45 1992:

 It is a response to #15. I'm sorry for not marking it.
 
but that process works very well. My editor was vi, now it's jove.


#20 of 47 by popcorn on Sat Nov 14 14:33:29 1992:

This response has been erased.



#21 of 47 by remmers on Sun Nov 15 02:59:30 1992:

I think that ~e looks at the EDITOR environment variable (and defaults
to "ed" if the variable is undefined) and ~v looks at the VISUAL
environment variable and defaults to "vi".


#22 of 47 by power on Sun Nov 15 07:42:00 1992:

 Jeffk: the setenv thing will only work from csh.  Are you using bourne
shell?  I think what you need to do there is SET EDITOR=VI followed by
EXPORT EDITOR.  I may be wrong with that, if I am, type 'tset -s vt100',
and that'll tell you how to set a variable (your TERM variable)... you
can change around a bit to work the way you want.


#23 of 47 by morel on Sun Nov 15 16:17:28 1992:

Isn't there a .mailrc in which you can set your editor?  I have some very
dim recollection of this.  I've been using Elm for ages, so my memory of 
this could be wrong.


#24 of 47 by remmers on Sun Nov 15 21:54:22 1992:

#22:  Nope, Jeff's login shell is csh, so I don't understand why setenv
      doesn't work.

#23:  Yes, if you have a file .mailrc in your home directory, mail will
      execute the commands in it when it starts up.  Not sure if you can
      set your editor that way, though.  The man entry on mail (which is
      quite extensive) should tell (Don't have time to look at it right
      now.).


#25 of 47 by davel on Sun Nov 15 22:41:46 1992:

Correction to #22: If you're using the bourne shell, the commands are
EDITOR=vi
export EDITOR
(No SET, case is significant).


#26 of 47 by mistik on Mon Nov 16 02:04:57 1992:

This is from my .mailrc file

set EDITOR=/usr/local/bin/jove
set VISUAL=/usr/local/bin/jove


#27 of 47 by jeffk on Mon Nov 16 02:30:53 1992:

Hmmm.  Very strange.  Lemme fiddle with it some more.  I copped the file
from Val (popcorn), and I assume that hers works.  I didn't change anything...
honest!

Thanks for the help...



#28 of 47 by mistik on Mon Nov 16 02:39:04 1992:

You switch to the editor by typing ~e or e (depending on mode) though,
don't forget.


#29 of 47 by popcorn on Mon Nov 16 03:41:46 1992:

This response has been erased.



#30 of 47 by tsty on Mon Nov 16 04:39:39 1992:

   << there are more than two ways to get to the same place?>>


#31 of 47 by mistik on Mon Nov 16 05:19:30 1992:

Depending on the prompt you are at, and your preference of command, there
is more than two ways...


#32 of 47 by davel on Mon Nov 16 18:03:57 1992:

In stuff like this it's a basic feature that you can get to the same place
in different ways.


#33 of 47 by jeffk on Tue Nov 17 04:40:24 1992:

Well, problem solved, sort-of.  I'll just run Elm and save everyone some
headaches.  Full-screen seems to work OK, so there's no harm.

Thanks for your help,everybody!


#34 of 47 by wh on Wed Sep 22 00:10:20 1993:

When I go into vi, everything looks fine. I hit i to insert, then
start typing. When I hit ESC, the menu for my cheap comms program
(Mirror) pops up. The second time I hit ESC, the menu disapper
adisappears, but I am still in the edit mode. I cannot seem to
get back into the command mode again. Any ideas?


#35 of 47 by robh on Wed Sep 22 03:43:19 1993:

Unless your comm program is REALLY cheap, it should have a way to send
an escape character through to Grex.  I'd advise checking your
documentation.


#36 of 47 by popcorn on Wed Sep 22 03:45:09 1993:

This response has been erased.



#37 of 47 by popcorn on Wed Sep 22 03:45:29 1993:

This response has been erased.



#38 of 47 by wh on Thu Sep 23 13:55:06 1993:

Thanks robh and popcorn. I found a way to change the AT key.


#39 of 47 by rcurl on Tue Nov 15 16:48:48 1994:

When I originally logged in I dutifully answered all the questions. Since
then, like apparently most users, I've removed telephone number, room
number (?), etc., from /passwd, with .chfn. However, that left a lot of
commas, which show up on a finger. How can I edit out those commas? 



Last 8 Responses and Response Form.
No Next Item No Next Conference Can't Favor Can't Forget Item List Conference Home Entrance    Help

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss