Skip to content

Instantly share code, notes, and snippets.

@liwh
Created March 1, 2011 15:26
Show Gist options
  • Select an option

  • Save liwh/849291 to your computer and use it in GitHub Desktop.

Select an option

Save liwh/849291 to your computer and use it in GitHub Desktop.
when we use zsh ,we may get some problem on the keybord shortcuts.for example ,the shortcuts ctrl+a is going the head of a line ,but in zsh ,it is not occured! so we must change the bindkey.
~ ❯ bindkey
"^A"-"^C" self-insert
"^D" list-choices
"^E"-"^F" self-insert
"^G" list-expand
"^H" vi-backward-delete-char
"^I" expand-or-complete
"^J" accept-line
"^K" self-insert
"^L" clear-screen
"^M" accept-line
"^N"-"^P" self-insert
"^Q" vi-quoted-insert
"^R" redisplay
"^S"-"^T" self-insert
"^U" vi-kill-line
"^V" vi-quoted-insert
"^W" vi-backward-kill-word
"^X"-"^Z" self-insert
"^[" vi-cmd-mode
"^[OA" up-line-or-history
"^[OB" down-line-or-history
"^[OC" vi-forward-char
"^[OD" vi-backward-char
"^[[A" up-line-or-history
"^[[B" down-line-or-history
"^[[C" vi-forward-char
"^[[D" vi-backward-char
"^\\\\"-"~" self-insert
"^?" vi-backward-delete-char
"\M-^@"-"\M-^?" self-insert
@skihero
Copy link

skihero commented Mar 1, 2011

In our shells we use set -o emacs to get ^ a and other emacs shortcuts.
Does doing that solve your problem?

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