Files
dotfiles/zshrc.d/keybindings.zsh
2023-01-17 14:12:35 +00:00

15 lines
434 B
Bash

# emacs mode
bindkey -e
bindkey '^[[H' beginning-of-line
bindkey '^[[F' end-of-line
# Even though 'showkey -a' gives the mappings above, these are required when using
# MobaXterm at least (and possibly plain putty). NO idea why.
# See https://github.com/ohmyzsh/ohmyzsh/issues/4872 for speculation...
bindkey "\033[1~" beginning-of-line
bindkey "\033[4~" end-of-line
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word