Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Why can't the 'main' keymap be an alias from 'vicmd'
- X-seq: zsh-users 15643
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Why can't the 'main' keymap be an alias from 'vicmd'
- Date: Thu, 9 Dec 2010 10:00:22 +0000
- In-reply-to: <AANLkTi=Guddnxb0FqkbzjrV1VHcgU7x_DT5pJHFREMkk@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <AANLkTi=Guddnxb0FqkbzjrV1VHcgU7x_DT5pJHFREMkk@xxxxxxxxxxxxxx>
On Thu, 9 Dec 2010 09:15:41 +1030
first name <33facebook@xxxxxxxxx> wrote:
> I mean, why is it possible to have 'main' linked to viins and have
> <esc> bound to the 'vi-cmd' widget, and not have the main linked to
> vicmd while `i' and `a' bound to the 'vi-insert' widget?
<esc> doesn't map to vi-cmd, it means 'leave insert mode and return to
the main keymap'.
Are you trying to start the line in command mode? If you have a recent
enough version of the shell, see the example under zle-line-init in the
zshzle manual page.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
Messages sorted by:
Reverse Date,
Date,
Thread,
Author