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,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32669 invoked from network); 15 Mar 2022 23:28:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Mar 2022 23:28:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1647386915; b=bTqFbxU7jk8qLxZRRc31euqxfdDjXKm6pP6sQSQczJbvKKmijnnnbV4YBP9CZmE6RynpRqIu2k EeGaGXOFSIblufXAFRheiV1/Yysz0FWt/lzcOBqAVD/2Tul43MGnV5HfP+mvU6/gkCM1qruHxZ 2NgIiUgjfqvunF1jUur9f6knKk5svCUKZmcEaTWbU00OcjM04cpAO0BLjIOVaI1dGSQeUH7VHA 2WNVcZjLxwBZa/nxL73f9y9ILCG4go/ltcX7/bhFjQbQ/sxaNgx+4uLLAsKPMziDybr5iBzvkG Ye/q1ax4jdM29cKkeV6IWntY9IeqxprN7b1zkgeS4D+NSQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-yw1-f175.google.com) smtp.remote-ip=209.85.128.175; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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=1647386915; bh=yoQ5i1OpaM1kL7IO0fAPTlm9EshCnWUkZXCeGw4UnQI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=H8vHE/NVsF0vCyTFo4T2KBCn/Invdl0hl4doJ6xFs+uY/ju+qH78U2lwYh/4cL8vCIHlCIImTH 1o/DSO9LayZScshVQzo9UyobEULLRMOC1hVbqsBwlZS0iEenCY9WNs0zhtCiHij3o/RDXoM8BN mNGIU6oEKUw++rEeNgb3kNnBCrFSkJTQVjBupQNGL1b8D557GVF2bsTKc7wTw3DlltCRR9UhAi Ch1NN3E+qzFoh6vSPcrjuH3v/ckldIqcyRlQ30/orMH6Un245JE6BVTfwKJblFPHBmEQgymU0p kHntubye3vrqOv36VcF9XQvmjQdH9Gap8AxKDneirPoKnw==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=PhoVQ0tjzDQ6JzUjohA8W0EsGHhGBJ68ZcgiUIoQpQQ=; b=R9+im8jxjhMBGaQDNnlR1kOVQG UwsY6JEdQOyM2QHjKNhsY8sV3Fs8dOLke14RysS/429foRGAHJ10wFEG0PhIubfRxIQHUcz9enGRn D3Ow64OcDCBaJHn3Ks7w0DNMMXqILXtUtAofszCb2RZgK6IWO5ztBsv9fqj5hsR/uLyYuBhSHhgZ/ bK/vwrADUBkmFuVO3oHdggPdapk2qsRI3y43OMP8v0LZva0yWLwNB2G1Sp5MRKL0RvIiKEcQwuhID oR5pvkAPCsybH4PDvq7S+ZupgykHqhaPSzjEurN+V1TkP1hMovx7bV7xGDYD308mdQHUQm42rxDiL TdXn/Zcg==; Received: from authenticated user by zero.zsh.org with local id 1nUGag-000Mzq-V7; Tue, 15 Mar 2022 23:28:34 +0000 Authentication-Results: zsh.org; iprev=pass (mail-yw1-f175.google.com) smtp.remote-ip=209.85.128.175; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-yw1-f175.google.com ([209.85.128.175]:36230) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nUGXm-000Ksj-60; Tue, 15 Mar 2022 23:25:34 +0000 Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-2dbfe58670cso5536687b3.3 for ; Tue, 15 Mar 2022 16:25:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PhoVQ0tjzDQ6JzUjohA8W0EsGHhGBJ68ZcgiUIoQpQQ=; b=CKX7BadeSrFLWI5L+GV0gXtKeCD2OTBFm3ibRtAs3a+uqtIpc5MTQUo+g1t3Gypgam Jx/J2vPUZM3Gbk5Edx3A6gNc5ED12uZy4H3JIqeRLkmNdnx3XaDF7ba8HVixqY5IjGeb 644Pvr6aH4Fzq9xTo01/obqdhVxA4G1zP6xP2sM16A8zHJjiQmLJZFaSb8xIK1eZLqn3 7XNMlXxj1F5i0SVwTU2rustEOsF3DEmFAy4IYAb79s1eL3Mn4fwGV+KYiLJKXle7Y+vA ujW62l8UW7PYKrzEWgkVRYMI6UHdOp5bsZGkUX+19iUvL9GMtHHXvlqgPHWjKQshQtgz bgdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PhoVQ0tjzDQ6JzUjohA8W0EsGHhGBJ68ZcgiUIoQpQQ=; b=HTGNN+/3Is4ut+4Lkf6LC2toMwnXR3Er5shtTsxlSu/E5MglN1UvwBP7S4s28/IpWb FV9LmEEKb6aFeHkXB7ich5gd+hLr+ArlIqgg/R04O1xJuNZTd8l1TNyofr/NtypsXdhs xaMp8PvHLUJBplSm1SvEcGZsYefvZdiLTielCK82dUvnr/aHZ0RY4V1GhftllaeMs9hJ QBaVvik0W61ZqnyFTMldWOZAO5nSoSyK4YAICOsC0QdTLLWPovknZhpx6p1ISQKd03th y0RfFxUTGpNKFU58ENdkN+u4fDdRUWXCvni2jO2KzyFHZcloDz9Cm9lIQmAk/4/xCNKw AEZg== X-Gm-Message-State: AOAM532+vrelmL3BouxyNaTUYx5gvJtvTjq8Hy73ZBEYRCoc6BQYihfb To0Uw9zf35qzZjqX/lxjGsJBRssozZIbKBn9Zg6fiG33/e5EKQ== X-Google-Smtp-Source: ABdhPJyjyqY/2lj/wRttVH8AI3uJLtGxWJs8OexEhEZaLx0+ox+IaCkic/k3Q0PA4vqbKWgd96YeUO9EQ0Y1U8CPs+g= X-Received: by 2002:a05:690c:13:b0:2dc:50bc:c975 with SMTP id bc19-20020a05690c001300b002dc50bcc975mr22145420ywb.173.1647386733293; Tue, 15 Mar 2022 16:25:33 -0700 (PDT) MIME-Version: 1.0 References: <3b61b4343181cb58d9ff6f71905666d9@dondley.com> <07d58a3283c63487afe6470c8a515702@dondley.com> <1e2f7baa61218066c154da4a0901a7f8@dondley.com> In-Reply-To: <1e2f7baa61218066c154da4a0901a7f8@dondley.com> From: Bart Schaefer Date: Tue, 15 Mar 2022 16:25:21 -0700 Message-ID: Subject: Re: How do I disable the mode for using j-k keys to scroll through history? To: Steve Dondley Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 27559 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: On Tue, Mar 15, 2022 at 4:02 PM Steve Dondley wrote: > > On 2022-03-15 06:55 PM, Steve Dondley wrote: > >> > >> Are you sure you want to disable it? Why are you using vi commands if > >> you never want to be in command mode? > > > > Because I want the insert mode commands. There is one "insert mode command" that works slightly differently than emacs mode, and that's ^W for vi-backward-kill-word. vi-kill-line would work differently, but you'd have to have exited from and then re-entered insert mode to notice. (Of course there are MORE commands in emacs mode, all bound to ctrl+something.) > > I have no idea how I would > > use vi command mode from a command line. Example: Hit ESC, and then hit "b" twice to move backward two words, and then hit "cw" to change the word you're on. Or: Hit ESC, and then "I" to go to insert something at the beginning of the command, and then ESC and "A" to go back to appending at the end. Do you never move left and right except one character at a time with the arrow keys, or by deleting? > At a minimum, I need to change the bind key for entering command mode so > it's not accidentally triggered. To see what's bound: bindkey -M viins You're interested in anything that's bound to vi-cmd-mode, e.g.: "^[" vi-cmd-mode To remove that: bindkey -M viins -r '^[' To add a different one, in this example two ESC in sequence: bindkey -M viins '^[^[' vi-cmd-mode