zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Steve Dondley <s@dondley.com>
Cc: Zsh users <zsh-users@zsh.org>
Subject: Re: How do I disable the mode for using j-k keys to scroll through history?
Date: Tue, 15 Mar 2022 15:46:28 -0700	[thread overview]
Message-ID: <CAH+w=7ZBxb=Up43ztkKXTVs2KoaAdXtEKMRdQS0ry+Bh03uJxQ@mail.gmail.com> (raw)
In-Reply-To: <3b61b4343181cb58d9ff6f71905666d9@dondley.com>

On Tue, Mar 15, 2022 at 3:38 PM Steve Dondley <s@dondley.com> wrote:
>
> I finally just figured out that I had somehow entered some special mode
> that activates the "j" and "k" keys to pull up prev/next commands.

You're using vi mode, so ESC enters vi command mode (as opposed to vi
editing aka insert mode), just as would happen if you hit ESC while in
vi itself.

> Through trial and error, I discovered the <esc> key triggers this mode
> and the "s" key gets out of it.

Any of "a", "i", or "s", or in a limited way "c" or "r", would return
you to insert mode, along with o, A, C, I, O, R, and S.

> Haven't figured out how to disable this feature. Google has turned up
> nothing useful after 10 min. of searching. Any ideas?

Are you sure you want to disable it?  Why are you using vi commands if
you never want to be in command mode?


  reply	other threads:[~2022-03-15 22:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-15 22:38 Steve Dondley
2022-03-15 22:46 ` Bart Schaefer [this message]
2022-03-15 22:55   ` Steve Dondley
2022-03-15 22:57     ` Steve Dondley
2022-03-15 23:24       ` Steve Dondley
2022-03-15 23:25       ` Bart Schaefer
2022-03-15 23:27       ` Lawrence Velázquez
2022-03-15 23:57         ` Steve Dondley
2022-03-15 23:59           ` Bart Schaefer
2022-03-15 23:24     ` Lawrence Velázquez
2022-03-15 23:47   ` Steve Dondley
2022-03-16  0:21 ` Steve Dondley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7ZBxb=Up43ztkKXTVs2KoaAdXtEKMRdQS0ry+Bh03uJxQ@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=s@dondley.com \
    --cc=zsh-users@zsh.org \
    --subject='Re: How do I disable the mode for using j-k keys to scroll through history?' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).