From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 950 invoked from network); 24 Mar 1998 17:13:32 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 24 Mar 1998 17:13:32 -0000 Received: (from list@localhost) by math.gatech.edu (8.8.5/8.8.5) id MAA27748; Tue, 24 Mar 1998 12:08:57 -0500 (EST) Resent-Date: Tue, 24 Mar 1998 12:08:33 -0500 (EST) From: Andrew Main Message-Id: <199803241707.RAA23049@taos.demon.co.uk> Subject: Re: vi command line editing To: stephen@memex.com (Stephen Marley) Date: Tue, 24 Mar 1998 17:06:59 +0000 (GMT) Cc: zsh-users@math.gatech.edu In-Reply-To: <19980324162607.38795@bach.memex.co.uk> from "Stephen Marley" at Mar 24, 98 04:26:07 pm X-Loop: zefram@tao.co.uk X-Headers: in preparation X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"0cLfj3.0.-m6.GY-5r"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1416 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Stephen Marley wrote: >You see, my fingers are tuned to using the older vi's (eg SunOS's) where >movement using the arrow keys doesn't work in insert mode. Arrow keys don't properly `work' in insert mode in *any* vi, since there is no such thing as an insert `mode'. > I have always map!ed the arrow keys to l or k etc so >that they take me into command mode and then move. You can do much the same thing with zsh: bindkey -s "^[[A" "^[k" bindkey -s "^[[B" "^[j" bindkey -s "^[[C" "^[l" bindkey -s "^[[D" "^[h" bindkey -s acts like vi's map command. The recent betas can do this in a slightly better way, but I think this is exactly the functionality you're looking for. -zefram