From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13621 invoked by alias); 26 Dec 2014 21:58:53 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34057 Received: (qmail 10934 invoked from network); 26 Dec 2014 21:58:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=no version=3.3.2 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Re: In Vi mode, show whether "insert" or "command" state is active Date: Fri, 26 Dec 2014 22:58:19 +0100 Message-ID: <87tx0ijcp0.fsf@gmail.com> References: <141221175723.ZM5756@torch.brasslantern.com> <8569631419273880@web5h.yandex.ru> <1441071419539683@web21o.yandex.ru> <141225151837.ZM15719@torch.brasslantern.com> <27275.1419593532@thecus.kiddle.eu> <141226112101.ZM17094@torch.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5498ea73.dip0.t-ipconnect.de In-Reply-To: <141226112101.ZM17094@torch.brasslantern.com> (Bart Schaefer's message of "Fri, 26 Dec 2014 11:21:01 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Bart Schaefer 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 http://chneukirchen.org