zsh-users
 help / color / mirror / code / Atom feed
From: Zefram <zefram@fysh.org>
To: Peter Stephenson <pws@csr.com>
Cc: zsh-users@sunsite.dk
Subject: Re: is there way to use vicmd (not viins) layout initially?
Date: Thu, 3 Apr 2003 15:49:31 +0100	[thread overview]
Message-ID: <20030403144931.GB27548@fysh.org> (raw)
In-Reply-To: <4898.1049376042@csr.com>

Peter Stephenson wrote:
>Unfortunately, if you do that, although the shell starts in vicmd mode,
>you can't get into viins mode, because the code which implements
>`vi-insert' switches to the main keymap, i.e. in this case straight back
>to vicmd.  This is actually documented, but I'm not sure if it's
>necessary.

I believe the intent was that in Emacs mode one could switch to
vi command mode and then switch back to Emacs mode by invoking an
insert command from the vicmd keymap.  That is, one can have vi-style
modal editing with the insert mode keymap actually being Emacs mode.
Changing the vi insert commands to switch to the "viins" keymap would
make this impossible in the current keymap arrangement.  It would still
be possible to get a similar effect by making "viins" an alias for the
"emacs" keymap, but this is an extra setup step and comes at the expense
of the real vi insert mode keymap.

I suggest that to achieve starting editing in vi command mode what one
wants to do is select the "vicmd" keymap instead of "main" when the editor
is invoked.  Perhaps there could be a specially-named widget that, if it
exists, gets invoked as soon as ZLE has started up to start editing a new
command line; this would be the in-ZLE equivalent of the precmd function.

-zefram


  reply	other threads:[~2003-04-03 14:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-03 12:00 Ilya Kuznecov
2003-04-03 13:20 ` Peter Stephenson
2003-04-03 14:49   ` Zefram [this message]
2003-04-03 15:30     ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030403144931.GB27548@fysh.org \
    --to=zefram@fysh.org \
    --cc=pws@csr.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).