If I have set -o vi in .zshrc, it doesn't work. If I comment it out, vi mode is disabled, obviously, but it starts to work again.
@antonshiryaev
Make sure you're loading history-substring-search last. And that you set vi mode before loading history-substring search, if you're not sure how to do that, just put set -o vi in ~/.zshrc at the top.
If it still doesn't work, can you try pasting this:
bindkey "^[" history-substring-search-up
bindkey "^]" history-substring-search-down
into zsh and then try using Ctrl+[ instead of up and Ctrl+] instead of down?
In .zshrc, you mean. Moving set -o vi to the top of .zshrc and history-substring-search to the end of zmodules in .zimrc fixed it. I didn't realize vi mode overwrote even the arrow keys, if that's what's happening.
This fixes my last vi mode-related grievance with zim. Thanks so much!
Adding things before the code loading the framework is not something many people would normally do - perhaps it'd be a good idea to set the mode through .zimrc and say so in the readme?
@antonshiryaev PR? You can make your own changes to the README and zimrc or zshrc.
Something like:
## Set your edit mode here
# Vi Mode
set -o vi
...