Skip to content

Instantly share code, notes, and snippets.

@MaxAnderson95
Created December 4, 2022 21:38
Show Gist options
  • Save MaxAnderson95/00835946943e74afe21f5dcd4ac08489 to your computer and use it in GitHub Desktop.
Save MaxAnderson95/00835946943e74afe21f5dcd4ac08489 to your computer and use it in GitHub Desktop.
Proper zsh keybindings for arrow navigation. Place in your .zshrc file
### ctrl+arrows
bindkey "\e[1;5C" forward-word
bindkey "\e[1;5D" backward-word
# urxvt
bindkey "\eOc" forward-word
bindkey "\eOd" backward-word
### ctrl+delete
bindkey "\e[3;5~" kill-word
# urxvt
bindkey "\e[3^" kill-word
### ctrl+backspace
bindkey '^H' backward-kill-word
### ctrl+shift+delete
bindkey "\e[3;6~" kill-line
# urxvt
bindkey "\e[3@" kill-line
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment