Browse Source

bindings: Add more Emacs binding for my crazy mix of Emacs and Vi

master
Peter J. Jones 1 month ago
parent
commit
894ef1ba48
Signed by: Peter Jones <pjones@devalot.com> GPG Key ID: 9DAFAA8D01941E49
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      lib/bindings.zsh

+ 4
- 0
lib/bindings.zsh View File

@@ -43,7 +43,9 @@ autoload copy-earlier-word
zle -N copy-earlier-word

# Insert some custom keybindings
bindkey '^[b' backward-word
bindkey '^[e' edit-command-line
bindkey '^[f' forward-word
bindkey '^[h' run-help
bindkey '^[i' last-cmd-as-expansion
bindkey '^[j' down-history
@@ -54,8 +56,10 @@ bindkey '^[w' copy-earlier-word
bindkey '^a' beginning-of-line
bindkey '^b' backward-char
bindkey '^e' end-of-line
bindkey '^d' delete-char-or-list
bindkey '^f' forward-char
bindkey '^i' expand-or-complete-prefix
bindkey '^k' kill-whole-line
bindkey '^n' down-history
bindkey '^p' up-history
bindkey '^r' history-incremental-search-backward

Loading…
Cancel
Save