diff --git a/zsh/p10k.zsh b/zsh/p10k.zsh index 31419a8..34a9266 100644 --- a/zsh/p10k.zsh +++ b/zsh/p10k.zsh @@ -37,6 +37,7 @@ # =========================[ Line #2 ]========================= newline context # user@hostname + vi_mode prompt_char # prompt symbol ) @@ -1521,6 +1522,9 @@ # Tell `p10k configure` which file it should overwrite. typeset -g POWERLEVEL9K_CONFIG_FILE=${${(%):-%x}:a} +typeset -g POWERLEVEL9K_VI_INSERT_MODE_STRING= +typeset -g POWERLEVEL9K_VI_COMMAND_MODE_STRING=COMMAND +typeset -g POWERLEVEL9K_VI_MODE_NORMAL_FOREGROUND=9 (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} 'builtin' 'unset' 'p10k_config_opts' diff --git a/zsh/zshrc b/zsh/zshrc index 46986bf..825e564 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,4 +1,8 @@ -bindkey -e +bindkey -v +bindkey '^?' backward-delete-char +bindkey "^A" vi-beginning-of-line +bindkey "^E" vi-end-of-line + autoload -U promptinit && promptinit autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump