-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use vi-mode with history-search? #247
Comments
Best workaround right now is as written here. Add this to your .zshrc zvm_after_init_commands+=("bindkey '^[[A' up-line-or-search" "bindkey '^[[B' down-line-or-search") |
If you want to use j and k instead you need to add -a to bindkey like so
|
I got it working in normal mode with zvm_after_init_commands, however is it possible to achieve this in insert mode? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
General information
Please report the following information as possible as you can:
Basic examination
Problem description
Using the standard zsh keybinds, when I type in the prompt and then press the up arrow, ZSH searches history for the most recent command which begins with the text already typed in the prompt. I use this at least five times a minute when coding for speeding up repetitive tasks or finding commands. When using vi-mode the up arrow, j in normal mode, and ctrl+p all find the last executed command without taking the prompt text into account. Is there a way to enable this?
Reproduction steps
Expected behavior
history-search is executed as in the normal input mode.
The text was updated successfully, but these errors were encountered: