From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-workers@zsh.org
Subject: Re: In Vi mode, show whether "insert" or "command" state is active
Date: Fri, 26 Dec 2014 22:58:19 +0100 [thread overview]
Message-ID: <87tx0ijcp0.fsf@gmail.com> (raw)
In-Reply-To: <141226112101.ZM17094@torch.brasslantern.com> (Bart Schaefer's message of "Fri, 26 Dec 2014 11:21:01 -0800")
Bart Schaefer <schaefer@brasslantern.com> writes:
> My vague idea was to have the value of N in %N(z..) refer to something
> about the keymap (where the example I gave is that %0(z) is true if the
> "main" keymap is selected and false otherwise). Assign 1 to the emacs
> keymap, 2 to viins, 3 to vicmd, etc.; %0(z) and %2(z) might both be true
> when main is an alias for viins. Obviously this is not perfect, but I
> haven't come up with a less grotesque alternative.
Perhaps %(z.viins.I.)%(z.main.N.)?
i.e. z.MODE.PRINT_IF_MODE.PRINT_ELSE.
--
Christian Neukirchen <chneukirchen@gmail.com> http://chneukirchen.org
next prev parent reply other threads:[~2014-12-26 21:58 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-22 0:07 Fwd: " Jason Spiro
2014-12-22 1:57 ` Bart Schaefer
2014-12-22 18:25 ` Peter Stephenson
2014-12-22 18:44 ` Ray Andrews
2014-12-22 18:44 ` ZyX
2014-12-23 4:40 ` Bart Schaefer
2014-12-25 4:15 ` Jason Spiro
2014-12-25 20:34 ` ZyX
2014-12-25 23:18 ` Bart Schaefer
2014-12-26 11:32 ` Oliver Kiddle
2014-12-26 19:21 ` Bart Schaefer
2014-12-26 21:58 ` Christian Neukirchen [this message]
2014-12-27 0:31 ` Bart Schaefer
2014-12-29 3:43 Jason Spiro
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=87tx0ijcp0.fsf@gmail.com \
--to=chneukirchen@gmail.com \
--cc=zsh-workers@zsh.org \
/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).