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 16585 invoked from network); 6 Nov 2021 15:04:49 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Nov 2021 15:04:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; 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=8o7GJ6oryfYa33i2p523iWxuK9tOWokGYmQ208H2IZo=; b=kqKNP3At6ykZCYCJy+wZMb0Za3 mKhbsSqmtkvDHrO0HhSgWLR6DGIW4crorH7IRzqgFteE2PGCeV3lPRFLJjVmxMLqmueptIMhI2qBp 5fqA6BrOtjBMttREmvfufMfeFslJjWohWcOzZ2MwcCVyHE1sdC00r/HOJ6Rbzu4OPjlba20Rqf1eY kc0nq0SEg/iRWvHnfAqV3KNnWvwL9CHEbBYm4kX1vUQOL1NXRUWUyxzk8nUGPO8iqTIPp5yvwfwCa wVNapcrts0+OOxtBV/Lld8Cfh/TiW8OPlwOUeVPUKJGxu//EWnItR5YCEyhWHvajDdU897Q0JPCxi jRKMQuBw==; Received: from authenticated user by zero.zsh.org with local id 1mjNFQ-000M3f-Ps; Sat, 06 Nov 2021 15:04:48 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mjNEw-000Ln7-KI; Sat, 06 Nov 2021 15:04:18 +0000 Received: from [192.168.178.21] (helo=hydra) by mail.kiddle.eu with esmtp(Exim 4.94.2) (envelope-from ) id 1mjNEv-000FFu-FI; Sat, 06 Nov 2021 16:04:17 +0100 cc: zsh-workers@zsh.org In-reply-to: From: Oliver Kiddle References: To: Taras Halturin Subject: Re: ctrl-u in vim-mode. bug. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <58644.1636211057.1@hydra> Date: Sat, 06 Nov 2021 16:04:17 +0100 Message-ID: <58645-1636211057.471076@1OT-.Fo4B.hS-J> X-Seq: 49547 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Taras Halturin wrote: > It seems I found a bug in zsh with vim-mode enabled. Ctrl-U (clear line to the > beginning) doesn't work correctly after switching between "normal" and "insert" > modes. That's not what Ctrl-U does in vi or vim. It deletes from the cursor back to the point where insert mode was started. In the zsh documentation for vi-kill-line, exactly that behaviour is described and that is what you get. If that's not what you want, you can bind Ctrl-U to kill-whole-line or kill-buffer or to whatever precise behaviour you want. Oliver