diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2016-11-06 03:02:45 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2017-06-01 18:37:35 +0200 |
commit | f64318a998b14c7e7fdfd54574cbff5ebc2398e1 (patch) | |
tree | 4d8468bf429e5ab896216253e762f6b7d6b5ab61 | |
parent | 837df28a72bbae8c61b5c8ab881d2dba16defb56 (diff) | |
download | dotfiles-f64318a998b14c7e7fdfd54574cbff5ebc2398e1.tar.xz |
zsh/keybinds: Nuke vi bindings since I don't use them
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r-- | zsh/keybindings.zsh | 61 |
1 files changed, 15 insertions, 46 deletions
diff --git a/zsh/keybindings.zsh b/zsh/keybindings.zsh index 53df9cd..2db2966 100644 --- a/zsh/keybindings.zsh +++ b/zsh/keybindings.zsh @@ -21,65 +21,34 @@ bindkey -v bindkey $terminfo[kcbt] reverse-menu-complete # Insert -bindkey -M vicmd $terminfo[kich1] vi-insert -bindkey $terminfo[kich1] overwrite-mode +bindkey $terminfo[kich1] overwrite-mode # Delete -bindkey -M vicmd $terminfo[kdch1] vi-delete-char -bindkey $terminfo[kdch1] delete-char +bindkey $terminfo[kdch1] delete-char -# 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 -bindkey $terminfo[kend] vi-end-of-line +bindkey $terminfo[khome] beginning-of-line +bindkey $terminfo[kend] end-of-line # Backspace (and <C-h>) -bindkey -M vicmd $terminfo[kbs] backward-char -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 - -# Page down (and <C-f> in vicmd) -bindkey -M vicmd $terminfo[knp] end-of-buffer-or-history -bindkey $terminfo[knp] end-of-buffer-or-history +bindkey $terminfo[kbs] backward-delete-char # Do history expansion on space bindkey ' ' magic-space -# -# Use M-w for small words -bindkey '^[w' backward-kill-word -bindkey '^W' vi-backward-kill-word - -bindkey -M vicmd '^H' backward-char -bindkey '^H' backward-delete-char - -# h and l whichwrap -bindkey -M vicmd 'h' backward-char -bindkey -M vicmd 'l' forward-char -# Incremental undo and redo -bindkey -M vicmd '^R' redo -bindkey -M vicmd 'u' undo - -# Misc -bindkey -M vicmd 'ga' what-cursor-position +bindkey '^H' backward-delete-char +bindkey '^[w' backward-kill-word -# Open in editor -bindkey -M vicmd 'v' edit-command-line +bindkey '^[f' forward-word +bindkey '^[b' backward-word -# History search -bindkey '^P' up-line-or-search -bindkey '^N' down-line-or-search +bindkey '^[r' redo +bindkey '^[u' undo # Patterned history search with zsh expansion, globbing, etc. -bindkey -M vicmd '^R' history-incremental-pattern-search-backward -bindkey '^R' history-incremental-pattern-search-backward +bindkey '^R' history-incremental-pattern-search-backward # Verify search result before accepting bindkey -M isearch '^M' accept-search + +# Misc +bindkey -M vicmd 'ga' what-cursor-position |