HP3000-L Archives

August 1999, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Marti Jarsey <[log in to unmask]>
Reply To:
Marti Jarsey <[log in to unmask]>
Date:
Thu, 19 Aug 1999 13:52:12 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (82 lines)
WOW, that was great.  Possibly you were a research lirarian in a past
life?

>>> Glenn Cole <[log in to unmask]> 08/19/99
01:23pm >>>
Noam Koren writes:

> I'm using VI editor under POSIX throuth Reflection.
> For some(?) reasone, the UP/DOWN/LEFT/RIGHT arrows are not operating
> (as in VI under other OS's).
>
> Can you advise me what to do in order to make those keys operate?

Michael Hensley of Allegro Consultants has compiled topics like this
into a paper called "Plug and Play POSIX", at

        < http://www.allegro.com/posix/pnpposix.txt >

For this specific question, he writes:

   D) Ok, now how about those pesky arrow keys in vi?
   [I stole this answer from Danny A. van Delft]
      Create a file  named .exrc, which contains the following:

      :map ^V^[U ^V^F
      :map ^V^[V ^V^B
      :map ^V^[B j
      :map ^V^[A k
      :map ^V^[C l
      :map ^V^[D h
      :map ^V^[h 1G
      :map ^V^[F G
      :map ^V^[Q i
      :map ^V^[P x

      Note that ^V stands for <CTRL>V and ^[ for <ESC>, all literal.
      You need the ^V to tell ex that the next character should taken
      literal, not interpreted.  (And the leading ":" has nothing to
do
      with MPE here.)
   [Thanks, Danny!]


A similar (though not exact) response is found in the HP 3000 FAQ,
hosted by 3k Associates at

        < http://www.3k.com/faq/hpfaqi.html >

Under 6.12 (Using the POSIX Shell), they write:

   Anyway, I use VI as my editor-of-choice on 5.0. You need an ".exrc"
file
   in your home directory (for example /CHRIS/PUB/.exrc). It should
contain
   map statements to translate your cursor keys into the VI
directional
   commands. For example:

      map ESC-A  k
      map ESC-D  h
      map ESC-C  l
      map ESC-B  j

   Where "ESC-A" is actually escape+A in the .exrc file (hard to
display
   here).

   I'm fairly certain that an HP-UX .exrc file will work fine if
copied
   over to MPE/iX.

   As Mark Klein points out, you need to have "Transmit Function Keys"
   enabled for your terminal. This is enabled automatically by
curses(?)
   when vi is run.

--Glenn

.......................................................................

Item Subject: cc:Mail Text

ATOM RSS1 RSS2