HP3000-L Archives

July 1996, Week 1

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:
"Danny A. van Delft" <[log in to unmask]>
Reply To:
Danny A. van Delft
Date:
Thu, 4 Jul 1996 23:04:59 GMT
Content-Type:
text/plain
Parts/Attachments:
text/plain (34 lines)
In article <[log in to unmask]>, [log in to unmask] says...
 
stuff deleted...
 
>This has been discussed before, but I'm posting this in public so perhaps
>someone in CSY will notice and do something about it.  You can setup a file
>to remap the cursor keys to h/j/k/l but I don't remember the filename, the
>format, nor the escape sequences.  This is one workaround (perhaps the best)
 
The file is called .exrc, the command you're looking for is :map, and is,
as the filename suggests, an ex command. Read all about it in "man vi".
Just put it in your HOME directory.
I have a .exrc (yes, DOT exrc) with mappings in it for the arrow keys and page
up and down, etc as well. Works like a charm for the hp2392a. Here it is:
: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.
 
You also know that you can get vi functionality on the command history of the
shell...?
 
Hope this helps.
Danny A. van Delft.

ATOM RSS1 RSS2