From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16789 invoked from network); 7 Dec 2020 23:03:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Dec 2020 23:03:48 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-ID:Date:Content-ID: Content-Type:MIME-Version:Subject:To:References:From:In-reply-to:cc:Reply-To: Content-Transfer-Encoding:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=R0Byne38hgYv2uCfByqh+dHzHWEXKmgny6M0Xee5nYw=; b=pTc+A2/EVqa0Ji/+qbB6FW2bDR 8z5KH6XmgOzQ7iqTIoCp20P2WJ4sBHy2b5+E8P9XCWn1e3UPl8ewei5hmPOsIyoDOzJ9qgzsnh03t f9eJcZmg0mthJVBRllWckqq3sSMjAjr38Ix0seGZJd6xhuQjeiHMqXaZ36Qb/p0Uy2K1TTOR5Maf3 shymX+3o+1G5haJGqvZEZX4v1yaSapOdH5+dqAQo4g+aDJY5liBAqtnUirbopt0rPIA4OolQbsmb4 LPc56AGd4aNry22GpH2+hg8aIvAuhoPAs2kAVQS6pdbuWc8YSAgCb13NoV5K5pyN2SHzxYeEVQCTj RTQwZWGA==; Received: from authenticated user by zero.zsh.org with local id 1kmPXk-000Cio-Q4; Mon, 07 Dec 2020 23:03:44 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1kmPXI-000CMO-3c; Mon, 07 Dec 2020 23:03:16 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.93.0.4) (envelope-from ) id 1kmPXG-000He1-IA; Tue, 08 Dec 2020 00:03:14 +0100 cc: zsh-users@zsh.org In-reply-to: From: Oliver Kiddle References: To: "A. Wik" Subject: Re: Some zsh questions MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <67827.1607382194.1@hydra> Date: Tue, 08 Dec 2020 00:03:14 +0100 Message-ID: <67828-1607382194.560022@L6HB.Gjwg.VlO1> X-Seq: 26215 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: On 1 Dec, "A. Wik" wrote: > (1) when I use ^X^V to enter vi command mode, then go to insert mode, > I can't get back to command mode using ESC, but using ^X^V again > works. It's in the keymap: > % bindkey -M viins |grep -i cmd > "^[" vi-cmd-mode > Incidentally, for some reason ^X^V is not listed. You're probably using emacs mode for the insert mode: % bindkey -M emacs|grep -i cmd "^X^V" vi-cmd-mode Entering something like a or i from the vicmd keymap doesn't specifically set the keymap to viins. You go back to whatever the main keymap is aliased to. Run bindkey -lL to see. If you want a hybrid of emacs and vi mode, you can always do: bindkey -M emacs '^[' vi-cmd-mode > (3) Copying and pasting acts weird when I use zsh but not bash; eg: > % echo $SHELL > /bin/zsh > % 0~echo $SHELL1~ 0~/bin/zsh1~ It looks like the bracketed paste sequences that the terminal generates before and after pasted text are not being handled. These are handled as a normal key binding: % bindkey -L|grep brack bindkey "^[[200~" bracketed-paste Are you perhaps clearing all bindings or loading an alternative paste plugin? Oliver