55ef81233d6785d97d8abc101d73fe0952807dd0 — Tom Almeida 3 months ago 21e0562
zsh: Add vi-mode maps

I've found myself using vi-mode a little more, and its grating to have
to swap mental models between my editor (nvim) and the command-line
vi-mode. These changes will hopefully cover most of the keybind changes
that I have made.
1 files changed, 11 insertions(+), 0 deletions(-)

M .zshrc
M .zshrc => .zshrc +11 -0
@@ 46,6 46,17 @@ bindkey "${terminfo[kcud1]}" history-beginning-search-forward-end
# ^U kills the entire line, not just back from cursor
bindkey '^U' kill-whole-line
bindkey '^R' history-incremental-search-backward
bindkey -a "n" vi-down-line-or-history
bindkey -a "N" vi-join
bindkey -a "e" vi-up-line-or-history
bindkey -a "i" vi-forward-char
bindkey -a "u" vi-insert
bindkey -a "U" vi-insert-bol
bindkey -a "k" vi-repeat-search
bindkey -a "K" vi-rev-repeat-search
bindkey -a "l" vi-undo
bindkey -a "j" vi-forward-word-end
bindkey -a "J" vi-forward-blank-word-end

bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line