From 65ceb15ffd79cd32946d57ed86b7d6406d985673 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Mon, 11 Aug 2014 21:34:21 +0200 Subject: zsh/keybindings: Add home keybindings --- zsh/keybindings.zsh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'zsh') diff --git a/zsh/keybindings.zsh b/zsh/keybindings.zsh index bfaaa9b..0c36b46 100644 --- a/zsh/keybindings.zsh +++ b/zsh/keybindings.zsh @@ -19,13 +19,17 @@ bindkey -v # Shift-tab bindkey $terminfo[kcbt] reverse-menu-complete +# Insert +bindkey -M vicmd $terminfo[kich1] vi-insert +bindkey $terminfo[kich1] overwrite-mode + # Delete bindkey -M vicmd $terminfo[kdch1] vi-delete-char bindkey $terminfo[kdch1] delete-char -# Insert -bindkey -M vicmd $terminfo[kich1] vi-insert -bindkey $terminfo[kich1] overwrite-mode +# Home +bindkey -M vicmd $terminfo[khome] vi-beginning-of-line +bindkey $terminfo[khome] beginning-of-line # End bindkey -M vicmd $terminfo[kend] vi-end-of-line @@ -38,8 +42,7 @@ bindkey $terminfo[kbs] backward-delete-char # Page up (and in vicmd) bindkey -M vicmd $terminfo[kpp] beginning-of-buffer-or-history bindkey $terminfo[kpp] beginning-of-buffer-or-history - -bindkey -M vicmd '^B' beginning-of-buffer-or-history +bindkey -M vicmd '^B' beginning-of-buffer-or-history # Page down (and in vicmd) bindkey -M vicmd $terminfo[knp] end-of-buffer-or-history -- cgit v1.2.3-70-g09d2