3k Associates Inc HP3000 FAQ TWiki TWiki > TWiki > HP3000FAQ > Hp3000Development > Hp3000ProgrammingFeatures > Hp3000ArrowKeysVi TWiki webs:
Main | TWiki | Sandbox
TWiki . { Welcome | Register | Changes | Topics | Index | Search | Go }

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 smile

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?

-- ChrisBartram - 09 Jun 2006



Topic Hp3000ArrowKeysVi . { Edit | Attach | Backlinks: Web All webs | Printable | History: r2 < r1 More }
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.Hp3000ArrowKeysVi