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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19456 invoked from network); 7 Oct 2023 21:14:32 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Oct 2023 21:14:32 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1696713272; b=Inn1hG0OI6kRCRMiuACzlRtgZ2hytsdE4q76xNSnmPuGQM2StH026RWJ7EXm/MML0Fcmu1YMgi +6/1qujmlHJeC7lPECW5dJI0NuelgtblWs+zDhHB6Ok11/ejS7qzkXuNnu6kDDSn2ZF56xCSJT Aq3xrM0RKDnxZkxrcpZJ/FID2aOxp/i8Um/Nqlz4B1vMmBsUD/3m5FCiLaQSwy6nAcGOObeLsF 91tka2gExwA00QgbuP1K7qqgBszIYAkDTn360NFQcLUyrJdJlRbn+IaD+EqqhBelImRRJE5kAD kWrY1uRrvkC264nYlSPd3GbfCdM78lHvqwq+rFj9wt6b9Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1696713272; bh=tPFHET22qL9B2P/hqzw4Yey/Zpzd2PAKtKuNJFwigDk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=sfoi+Z5Mo9TSY0Aa0B99w6rG8nC4Te3dCoC+/JutxMZzfS80KuX3daNdI33t83GB0FU/KZCn/v kUpLSbETGA/iZKYMqNB/BfGy6fgDW1NxzvgqTvgxS6I1NUqK0ZCgCKclIg7ZqqO920ERwfJ+ZG NDcoYpBULTWnF1vDnHgvmFUI+Zb/SytJWHRAbLRyE3LOB3U2c6gbl1NqKFo4RjU481EYjaOo3w MY5wQFmXHdaHm1Wb4BuvITsy99PyTZvdWWU1ZEFJj1D5TUKYsZ7Jb7KBX8YYLRDzSWlTjFRfX8 3rB1L+XwOr6pTckKYbDYdalHI/tEEaT6bLNt6spbyPg95g==; 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:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=0zBpTI+vJsBSVSymy9G1EDQFLy3AJSQDdXrx5MTgjSs=; b=cCe5bA/lLQHUM4iPs5YhI4T+w5 zv11HO8qUJLKyT/ucTLt634dAPJE51TEdw/m+R7h3p8nAobUw2FsqrjSpERZiHeMs6G8IG0MrG3BQ sDsPlEryUqhietAgmFxK1zhLW6K41w5dk1NDodlowJe7iU1GCSaP47l5MmeFGKEqTsonMeHRdZmRc CotppfJQegdVU6E5wUxeBWc2YPljfHYUaSX/EGYlHo8JTQ+vz7QWBuPc/39aBRwfrcMcwImRtwTnr y+mjpGheZmXwRKqIvXt3m+1euxs+tBmLCdx60UNgI5kUA2563jorWmV6rPzewTxjEwl3bj/sSqULH 659i5U9g==; Received: by zero.zsh.org with local id 1qpEd6-000FIK-0t; Sat, 07 Oct 2023 21:14:32 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f52.google.com ([209.85.218.52]:50233) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qpEcL-000EbQ-15; Sat, 07 Oct 2023 21:13:45 +0000 Received: by mail-ej1-f52.google.com with SMTP id a640c23a62f3a-9b1ebc80d0aso566898566b.0 for ; Sat, 07 Oct 2023 14:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1696713224; x=1697318024; darn=zsh.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=0zBpTI+vJsBSVSymy9G1EDQFLy3AJSQDdXrx5MTgjSs=; b=xxLRcqh99UutB3tDE5jpyOmqyi/v7EBeIJvSYNOFb7apjbAgoppCLx8uEB5JFu+sQR ORjcgoUhiwybyFG6vJO4sOuU+eEE0V+udHg9PKe/ZXGRhc0PeOzfzRBV8FriZ8jBYV09 8mloeJsIdAXvjMO2aBfXpUMZQyUhAyjn9FkIJS+VxuFT5+5GTTJQpI9lqebx6PWtQuKe dL1Ny8DRNoz8u5GepDoW6VnciJG281cLdjQGM5eXp35SWupUh0NIapX/uLsP89Ou+/Mh iLyJx8GU0SyI9bqQWvVscXa+lyevoLsQ984O2HthMYmytbmBmNOre9ZjXdIq5Xeky6If zG+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696713224; x=1697318024; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=0zBpTI+vJsBSVSymy9G1EDQFLy3AJSQDdXrx5MTgjSs=; b=I5zTDSMBHIqnXyDuQzdi7iMVTYwAngQNuHpwDay0YZSF+dcDwFnBfli4Ds5BY2wM8R u6jWWB6PGXDSvIWq8awLRXILmoTN4W5Fh5fJ8xmG6KEQ80qvp3zBTpLNOkyhEUI0cane 0gGFmxG/ma53F5r/EMfYTSCSB4ylNpLPvloERUMzXe+a/GIMJDLGQmKKZ7OKvzgIfSk3 W3bqh2YElxWEdREpTpBHwacYQ36ttBloBBddJIc8evy84pWZzytSBoBK9SvBfvmOdWwT v0tddrf9YEourNfx6AiEgNEGvp02i0oBdIuCTvdZw5H6n7r4FITxXgvwicVriw/51SXD yuqA== X-Gm-Message-State: AOJu0YwtDmYfsYtkvf0cijQBmAmZRktW2M1cs+b/u4W5ymuxZ/XN3Boc BmtqL5OuXp3cDw5ZPVHoMUAVLbdB1LycApEQcf3LMvdZjqKOQHje X-Google-Smtp-Source: AGHT+IHII1+bIg734an1oBTkgzhpdOsRm3fzk6+PnPRc0ZzrbWJXQPagrqieX5rx5yh6C5yL9YXQz2DA5ATu/uQdjvM= X-Received: by 2002:a17:906:1d:b0:9b2:9a0e:9972 with SMTP id 29-20020a170906001d00b009b29a0e9972mr10380574eja.13.1696713224339; Sat, 07 Oct 2023 14:13:44 -0700 (PDT) MIME-Version: 1.0 From: Bart Schaefer Date: Sat, 7 Oct 2023 14:13:33 -0700 Message-ID: Subject: Default setting of ZLE keymap To: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 29277 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: For just about as long as zsh has existed, interactive shells at startup have examined the environment variables $VISUAL and $EDITOR for clues as to whether the default key bindings should be emacs-like or vi-like. Recently it was noticed that when one of these variables uses a full path to name the editor program, the substring "vi" appearing anywhere in that path (such as, in the name of the user's home directory) would cause the vi-mode keymaps to be incorrectly enabled. Two possible approaches have been suggested to address this: (1) The whole scheme of using VISUAL / EDITOR to select zsh bindings should be abandoned. It's obsolete and no one uses those variables for that purpose any longer. Zsh should default to emacs behavior unless an rc-file explicitly performs "bindkey -v". (2) Continue to look at the two variables, but assure that "vi" has to appear in the command name, that is, after the rightmost slash in any path, or in the first word if there are no slashes. Throwing the question out to a wider audience: If the zsh-users list expresses no particular preference, or no need for #2, zsh-workers will proceed with #1. Discuss. Thanks.