From c69c510832e16205951813a747180364fe994c50 Mon Sep 17 00:00:00 2001 From: steveokard Date: Sun, 30 May 2021 13:41:21 -0400 Subject: [PATCH] vi movement keys --- zsh/.zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index d8bc7bf..35c594c 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -48,6 +48,15 @@ zinit ice zinit snippet PZT::modules/editor zinit ice silent; zinit snippet PZT::modules/gpg zinit ice silent pick"init.zsh" lucid; zinit snippet PZT::modules/utility # }}} +##Set VI MODE +bindkey -v +bindkey '^r' history-incremental-search-backward +bindkey '^a' beginning-of-line +bindkey '^e' end-of-line +# Also fix annoying vi backspace +bindkey '^?' backward-delete-char +bindkey '^[b' vi-backward-blank-word +bindkey '^[w' vi-forward-blank-word # SSH-AGENT zinit light bobsoppe/zsh-ssh-agent # AUTOSUGGESTIONS, TRIGGER PRECMD HOOK UPON LOAD @@ -198,7 +207,6 @@ setopt nolisttypes setopt listpacked setopt automenu unsetopt BEEP -setopt emacs # From Prezto/Environment unsetopt BG_NICE # Don't run all background jobs at a lower priority. unsetopt HUP # Don't kill jobs on shell exit.