From 243020a2c7fe73d25bf1d420963c9900485d9c3d Mon Sep 17 00:00:00 2001 From: Tim Huizinga Date: Fri, 21 Feb 2025 17:02:52 +0100 Subject: [PATCH] Fixed autosuggestions in vi mode --- zsh/dot-zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/dot-zshrc b/zsh/dot-zshrc index 4b0bfb8..2cb22ec 100644 --- a/zsh/dot-zshrc +++ b/zsh/dot-zshrc @@ -28,6 +28,9 @@ plugins=( dirhistory ) +bindkey -M vicmd "k" up-line-or-beginning-search +bindkey -M vicmd "j" down-line-or-beginning-search + HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="fg=yellow" HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND="fg=red" HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_TIMEOUT=3