%META:TOPICINFO{author="ChrisBartram" date="1170385885" format="1.1" version="1.2"}% %META:TOPICPARENT{name="Hp3000ProgrammingFeatures"}% ---+ [[Hp3000ArrowKeysVi][How to get arrow-keys to work in vi/etc on an HP3000]] How can you get the #%@$# cursor keys to work? With TERM='hp2392a' they don't. vi is just too weird without 'em :-) Posix vi looks for an EXRC environment variable, which by default is "./.exrc". Put mappings like the ones shown below in that file to map your arrow keys to the proper vi key. Note -- use a real escape character where you see "^[".
map ^[A k map ^[B j map ^[C l map ^[D h--[[LarryByler]] -- Main.ChrisBartram - 09 Jun 2006