Skip to content

Instantly share code, notes, and snippets.

@psynaptic
Created November 7, 2012 20:10
Show Gist options
  • Save psynaptic/4034062 to your computer and use it in GitHub Desktop.
Save psynaptic/4034062 to your computer and use it in GitHub Desktop.
set -o vi
bindkey -v '\e[A' history-beginning-search-backward-end
bindkey -v '\e[B' history-beginning-search-forward-end
bindkey -v '\e.' insert-last-word
bindkey -v '^R' history-incremental-pattern-search-backward
bindkey -v '^S' history-incremental-pattern-search-forward
bindkey '^W' backward-kill-word
bindkey '^H' backward-delete-char
bindkey '^U' backward-kill-line
bindkey '^?' backward-delete-char
bindkey '^[[Z' reverse-menu-complete
@NikLP
Copy link

NikLP commented Nov 9, 2012

Is it worth adding comments here to illustrate what the key mappings are? :)

@psynaptic
Copy link
Author

But then we'd be able to understand the code without reading it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment