zsh-vi-mode
zsh-vi-mode copied to clipboard
How can I get back the old history search behavior in insert mode?
General information
Please report the following information as possible as you can:
- Terminal program: kitty
- Operating system: Manjaro
- ZSH framework: oh-my-zsh
- ZSH version: 5.8
- ZVM version: 13548af
Basic examination
- [x] I have read through the README page
- [x] I have the latest version of zsh-vi-mode
- [x] I have tested with another terminal program
Problem description
When using the plugin, normal search behavior is gone. I mean that you can type sudo and then search all commands starting with sudo by hitting the up arrow key.
Reproduction steps
- Install oh-my-zsh
- Install ZVM
- See the different history searching behaviour in insert mode
Expected behavior
I would like the same behavior in insert mode as without zvm.
Same here.
Great plugin, however this history thing is very annoying. Any plan to fix it or is there any workaround for the time being?
I fixed it by ditching this plugin completely. Just add bindkey -v to your .zshrc and you will have almost the same functionality.
Thanks @jclsn. I had the same issue. I added bindkey -v
to my .zshrc
and it works like a charm.
Hi @piotrraczynski @jclsn
Sorry for the late reply, as currently I'm quite busy. Related to issue #12, for the old history behaviors, you can manage to fix this behavior by adding the following at the end of my .zshrc
as below code snippet:
zvm_after_init_commands+=("bindkey '^[[A' up-line-or-search" "bindkey '^[[B' down-line-or-search")
Thanks & Regards
@jeffreytse No worries. Just merge this when you find the time :)