Closed Eloquencere closed 4 months ago
Hello, how did you resolve this ?
it's done by adding the bindkey statement within a function called "zvm_after_init()" using "zvm_bindkey". The issue is that once vi mode is enabled in zsh, it wipes out all the keybinds configured before it, so keybinds that need to be used with the vi mode have to be registered once the setup is done
function zvm_after_init() {
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
zvm_bindkey viins '^p' line-up-or-search
zvm_bindkey viins '^n' line-down-or-search
}
I added this line at the end of my zshrc and it's working as expected. This function is automatically called by zvm after initialisation.
Ok thank you
General information
Basic examination
Problem description
I used to use zsh's completion for command history by using the keybind - bindkey '^p' line-up-or search , and another for line down, now after switching to zvm, I know that a key can be set by doing - zvm_bindkey , so I tried that with line up search, and I am getting - line-up-or-search: function definition not found.
I even tried doing autoload -U line-up-or-search && line-up-or-search - to no avail
Reproduction steps
Expected behavior
It's supposed to complete a command based on the previous commands that were run with that specific cli tool like cd, ls etc