aboutsummaryrefslogtreecommitdiffstats
path: root/zsh
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-08-11 21:34:21 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2014-08-11 21:34:21 +0200
commit65ceb15ffd79cd32946d57ed86b7d6406d985673 (patch)
tree587875c5f493850e79d8e92c1aecf151d475ab56 /zsh
parentced1a5b3e1260e0e448f2ed6a7e91956ffeebd71 (diff)
downloaddotfiles-65ceb15ffd79cd32946d57ed86b7d6406d985673.tar.xz
zsh/keybindings: Add home keybindings
Diffstat (limited to 'zsh')
-rw-r--r--zsh/keybindings.zsh13
1 files changed, 8 insertions, 5 deletions
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 <C-b> 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 <C-f> in vicmd)
bindkey -M vicmd $terminfo[knp] end-of-buffer-or-history