Zsh Mailing List Archive
Messages sorted by:
Re: Why can't the 'main' keymap be an alias from 'vicmd'
- X-seq: zsh-users 15645
- 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 15:38:05 +0000
- In-reply-to: <101209071852.ZM7968@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:firstname.lastname@example.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:email@example.com>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <AANLkTi=Guddnxb0FqkbzjrV1VHcgU7x_DT5pJHFREMkk@xxxxxxxxxxxxxx> <20101209100022.1a869922@xxxxxxxxxxxxxxxxxxxxxxxxx> <101209071852.ZM7968@xxxxxxxxxxxxxxxxxxxxxx>
On Thu, 09 Dec 2010 07:18:52 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> What you really mean is that vi-insert and all its friends don't mean
> "select the viins keymap", they mean "position the cursor as needed
> and switch back to the main keymap".
Yes, you're right.
> If we had thought about it hard enough, when we introduced the magic
> name "main" for the primary keymap we should also have introduced a
> magic name "alt" for the bindkey -a keymap, and let you have any two
> keymaps as main/alt. Then bindkey -v would select viins/vicmd, and
> bindkey -e would select emacs/vicmd, and we could have documented
> that vi-cmd-mode really means alt-keymap-mode.
> Maybe it's not too late to do this anyway, as it won't change any of
> the old behavior.
Doesn't sound impossible to without screwing anything up.
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: