Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Why can't the 'main' keymap be an alias from 'vicmd'
- X-seq: zsh-users 15640
- From: first name <33facebook@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Why can't the 'main' keymap be an alias from 'vicmd'
- Date: Thu, 9 Dec 2010 09:15:41 +1030
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=+X3dI8mHqU6y3vBZjv+JLQ9+4yUnQeGuD0bQi/ctLuw=; b=TH9tem7jGcqH+eGb24rcVTX9UE2GS6oGoWh+AhTuyDRFumSxtCmjm+wgykTYcgyQlq dXXLK1eUhHLQI6RMoRDPgQAsY0l/PdCjNnJkrO6mTWTmCHLSHnt1GslwXAt5pe6Fjsnw RsLVA8BcBSx7e8dDQ1Ad0GgUQW6bjGGQN+ysE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cud6h8b9+XyzrIu+ZX6CyKafI4t8bX+la9lure0bL9GZUA9z1rAtMS9pGXvwDdpYSz gZOkZJiFG7yScSJm6lzGXAoZ0W/zY8Oj0YdrrqpeKJ6MBmMKNfSanR1AiGXQ+Dg/xtDC CcK4y5gVeYviRXz4TPEydKZxq30lKstvZ/6p0=
- 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
<zsh-users-sc.1291846382.mkdokibkckoflkocimkl-33facebook><http://gmail.com/>
The following is from the zshzle page:
"Note that while `bindkey -A newmap main' will work when newmap
is emacs or viins, it will not work for vicmd, as switching from
vi insert to command mode becomes impossible."
Well, trying it by aliasing main to vicmd, i.e. `bindkey -A vicmd
main', i was "able" to to switch to vicmd mode, but the actual thing
that was impossible, is switching to insert mode.
now why?
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?
cheers
Messages sorted by:
Reverse Date,
Date,
Thread,
Author