Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Why can't the 'main' keymap be an alias from 'vicmd'



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