From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6096 invoked by alias); 23 Jun 2016 22:37:47 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21702 Received: (qmail 7542 invoked from network); 23 Jun 2016 22:37:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=5XJKFQ8dPdI5x7VO8kvhNhzXGvYP63MScsWVphD5gik=; b=dB4upRPeWxBYAihLPHXbVoL+c4fq5c81yvjJuh5c/0BZqVt5PbWbJMd2sIrCGXXcZm rRZkqtjMiE897bmlbY9KKnKTwOJBpTiB1sn7W6BVXf/1tf4IjOj/ABZZ3jtWflUBeaJp wUVT5t9LVdQDohUKZ2u6mDrrvxZIpblPBUrMKy4SxlPahy1vnFKatOn1LFGKWGSEHEp7 CjzVc2BgbUag75QKnd6lV5a9+67ZiovXEPXTkEYFJF5mTD6zE7aQV/snyptdys4C4UFR 69k+9lXnRFjMlyHSlzSknY93L6081JH3mCyq0K3nSx/YP4W87nen2PgJ5DEHc1oG4uA0 uyiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=5XJKFQ8dPdI5x7VO8kvhNhzXGvYP63MScsWVphD5gik=; b=jFEHEahGh7LjxtXLDwEEJCatrpcBJtK4AN17f/av3tq3JClM1bIi6/0LrjNR2IJAye e3ikf/MqQ3/5rhhTH7HfwgYh8Lp/yA1sSf6xXsMS+330sYuom/O1MXq71Cz5eYv36YOb RJSfj3cMzwrjPaqDPvn66sjHcqXQ7c8LBr40FUUbYiBd13QVPGSxV5+AMKGK3F5f/4kK /0rlFSrnAmc2OYg8Dpfz1MY3GzQO1MNaQ46n3eG998OYfAMPxrqDYk/r9Zsc5ykmAoyy s3VLCX3yX3gOpFgakP2flgBHzzE6J9ZpK4xztOR+xehENxL+T4Ljra1mniUuapc/HjKs SL5A== X-Gm-Message-State: ALyK8tIWR1ZXJsH6MB35XpsRKy8nFXETDOJujxYrDFq7c+fHKyVtHCY7/aJ4VJ7w7q260AepUE5RlMDH33gNYQ== X-Received: by 10.46.1.156 with SMTP id f28mr269984lji.22.1466721465169; Thu, 23 Jun 2016 15:37:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <21997.1466550647@thecus.kiddle.eu> <160621234233.ZM10369@torch.brasslantern.com> <25350.1466608182@thecus.kiddle.eu> <27903.1466634569@thecus.kiddle.eu> From: Bart Schaefer Date: Thu, 23 Jun 2016 15:37:44 -0700 Message-ID: Subject: Re: [vi-mode] widgets for case manipulation: `gU` and `U` in visual mode To: Zsh Users Content-Type: text/plain; charset=UTF-8 [I'm having some trouble connecting to my SMTP server from home, so I'm pasting this into gmail. Apologies if the formatting gets weird or if a nearly-identical message appears later if things suddenly start working again.] On Wed, Jun 22, 2016 at 9:30 PM, Filipe Silva wrote: > > Having an ESCKEYTIMEOUT would be awesome. Setting KEYTIMEOUT to anything > above 5 is quite noticeable and laggy when I want to return to normal mode. > KEYTIMEOUT=1 is snappy, but then I lose out on the surround widget and > whatnot because I can't type `ys` fast enough. Try this: set-keytimeout() { case $KEYMAP in (vicmd) KEYTIMEOUT=5;; (*) KEYTIMEOUT=1;; esac } zle -N zle-keymap-select set-keytimeout zle -N zle-line-init set-keytimeout That should give you a short timeout when switching from insert mode to what you call "normal mode" (command mode), and a longer one when you are in command mode. Sadly, for reasons already noted, it won't speed up using ESC in command mode for deactivate-region.