From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29839 invoked from network); 23 Jan 2006 16:18:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jan 2006 16:18:10 -0000 Received: (qmail 51868 invoked from network); 23 Jan 2006 16:18:02 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jan 2006 16:18:02 -0000 Received: (qmail 11911 invoked by alias); 23 Jan 2006 16:17:55 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9847 Received: (qmail 11890 invoked from network); 23 Jan 2006 16:17:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Jan 2006 16:17:54 -0000 Received: (qmail 50723 invoked from network); 23 Jan 2006 16:17:54 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 23 Jan 2006 16:17:51 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0ITJ005ZLZWVWI96@vms040.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 23 Jan 2006 10:17:20 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id k0NGHJsR028727 for ; Mon, 23 Jan 2006 08:17:19 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id k0NGHIfH028726 for zsh-users@sunsite.dk; Mon, 23 Jan 2006 08:17:19 -0800 Date: Mon, 23 Jan 2006 16:17:18 +0000 From: Bart Schaefer Subject: Re: change color depending on vi-mode In-reply-to: To: zsh-users@sunsite.dk Message-id: <1060123161718.ZM28725@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: Comments: In reply to Fabian Braennstroem "change color depending on vi-mode" (Jan 23, 12:19pm) On Jan 23, 12:19pm, Fabian Braennstroem wrote: } } I use 'adam2'. Now, I would like to know, if it is possible } to display some information or change the color of the bar } depending on the current vi-mode? There was a discussion about something like this last year; search the archives for "Vi ZLE bindings". The short answer is that the only way to do it is to create your own widget functions for all of the vi commands that change modes. There is no "callback" associated with changing the keymap that can be used to update the prompt.