From b8cd79b18afd62ea9953309811fc88ae28697266 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 8 Apr 2021 10:47:17 +0200 Subject: [PATCH] Vi mode - yet another test. --- zsh/.zshrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 45a8260..096a130 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,5 +1,16 @@ # key mode -bindkey -e +bindkey -v +bindkey '^?' backward-delete-char +bindkey "^A" vi-beginning-of-line +bindkey "^E" vi-end-of-line +bindkey "^P" up-line-or-history +bindkey "^N" down-line-or-history +bindkey "^K" forward-char +bindkey "^U" kill-whole-line +bindkey -r "^[[A" +bindkey -r "^[[B" +bindkey -r "^[[D" +bindkey -r "^[[C" mkdir -p $XDG_DATA_HOME/zsh # global exports and options