#!/bin/zsh # vi mode bindkey -v # Use vim keys in tab complete menu: bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char bindkey -M menuselect 'j' vi-down-line-or-history # Widgets bindkey '^e' lfwrap bindkey '^g' lg bindkey '^z' togglefg bindkey '^s' toggle-fzf-tab bindkey -M vicmd '^v' edit-command-line bindkey '^?' backward-delete-char bindkey '^[[3~' delete-char bindkey "^[[H" beginning-of-line bindkey '^[[4~' end-of-line bindkey '^[[1;5C' forward-word bindkey '^[[1;5D' backward-word