From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076339121376.tru64-unix-managers.marc@archive.invalid> From: Lucio Chiappetti Date: Tue, 10 Sep 1996 08:54:13 +0000 To: tru64-unix-managers Subject: csh editing command line X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076339121376 I *desperately* want to reinstate in Digital Unix csh the command line editing mode I had in Ultrix csh. In particular I want to be able to use the arrow keys to move to the previous and next command, and also to the previous and next character on the line. For the rest I'd use the vi editing commands. I've read the man pages of csh and cmdedit, and tried the following set editmode=vi created a .bindings file with the following content, which should remap the arrow keys. I've tried also putting \^[ instead of \e for "escape" bind-to-key PreviousHistEntry "\e[A" bind-to-key NextHistEntry "\e[B" bind-to-key ForwardChar "\e[C" bind-to-key BackSpace "\e[D" The set editmode command works, and I've tried also some other bind-to-key (apparently I can remap to any control sequence but not to the arrow keys). I get a funny behaviour, that is even if I want to use the painful vi cursor-movement (hjkl) I have to "unset edithist" and press escape once I recalled a command. Any enlightment or pointer to FAQ appreciated. ---------------------------------------------------------------------------- A member of G.ASS : Group for Astronomical Software Support ---------------------------------------------------------------------------- Lucio Chiappetti - IFCTR/CNR | Ma te' vugl' da' quost avis a ti' Orsign via Bassini 15 - I-20133 Milano | Buttet rabios intant te se' pisnign Internet: LUCIO@IFCTR.MI.CNR.IT | (Rabisch, II 46, 119-120) ---------------------------------------------------------------------------- For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html ----------------------------------------------------------------------------