From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18715 invoked by alias); 25 Dec 2014 04:15:32 -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: 34050 Received: (qmail 4025 invoked from network); 25 Dec 2014 04:15:18 -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=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=L6nM+I06FnbXaq78pAfqv3dCaDwCCv3/hRTzkWewLf8=; b=IeUjsM1f+YU3kCcuhhZZ00ekqog3nyfoIGC/EupmxDnDM8uL8YFdolx7AnnqmJGa/d 0aFbaz0YhOZ5H1G0vvG/w53d0OwrEcmhJFDmBR+uR5ApWWeXeLXYi7EnBkBpz3SrN2FF fXhD5MWia0/P9yPt1+xLhvzwJyXVJRPUWAm+Bi8jQFwToe5P7ZwKhKdC5LQIupvB7Ehl qWEOJemZAEKpK96F1Gh47dGmeRf57xA+8jl6IzZ7OHKfJlxUQf81TdL6BxGIwYWZ31lv 7eZkJHMROzMkSYf0bUgnca/bnrB+yqM0cRgD4C4I0rKDPQD6aoyPFUJiZeAkyvB25ECS xvBw== MIME-Version: 1.0 X-Received: by 10.50.79.230 with SMTP id m6mr8670505igx.20.1419480910284; Wed, 24 Dec 2014 20:15:10 -0800 (PST) In-Reply-To: <8569631419273880@web5h.yandex.ru> References: <141221175723.ZM5756@torch.brasslantern.com> <8569631419273880@web5h.yandex.ru> Date: Wed, 24 Dec 2014 23:15:10 -0500 Message-ID: Subject: Re: In Vi mode, show whether "insert" or "command" state is active From: Jason Spiro To: ZyX Cc: "zsh-workers@zsh.org" Content-Type: text/plain; charset=UTF-8 On Mon, Dec 22, 2014 at 1:44 PM, ZyX wrote: > And this should be changed prompt/rprompt, not changing > cursor because changing cursor shape is less likely to work OK. You could do things the same way Bash's brand-new 'show-mode-in-prompt' feature does things: you could add one extra character to the beginning of the prompt. A colon in vicmd mode; a plus sign in viins mode. This should work reliably in every terminal emulator.