From cd66ce5daf41cf9711a6365d1d98a8d3616958d8 Mon Sep 17 00:00:00 2001 From: Tran Sang Date: Sun, 30 Apr 2017 02:11:30 +0900 Subject: [PATCH] add keybinds for vi-mode --- plugins/vi-mode/vi-mode.plugin.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh index 82a2f304..0a61f97e 100644 --- a/plugins/vi-mode/vi-mode.plugin.zsh +++ b/plugins/vi-mode/vi-mode.plugin.zsh @@ -27,6 +27,8 @@ bindkey '^N' down-history bindkey '^?' backward-delete-char bindkey '^h' backward-delete-char bindkey '^w' backward-kill-word +bindkey '^k' kill-line +bindkey '^y' yank # allow ctrl-r to perform backward search in history bindkey '^r' history-incremental-search-backward @@ -35,6 +37,10 @@ bindkey '^r' history-incremental-search-backward bindkey '^a' beginning-of-line bindkey '^e' end-of-line +# char movement +bindkey '^b' backward-char +bindkey '^f' forward-char + # if mode indicator wasn't setup by theme, define default if [[ "$MODE_INDICATOR" == "" ]]; then MODE_INDICATOR="%{$fg_bold[red]%}<%{$fg[red]%}<<%{$reset_color%}"