]> arthur.barton.de Git - ax-zsh.git/blob - core/10_keyboard/10_keyboard.zshrc
Implement FG, BG and FX arrays, compatible to OhMyZsh & spectrum
[ax-zsh.git] / core / 10_keyboard / 10_keyboard.zshrc
1 # AX-ZSH: Alex' Modular ZSH Configuration
2 # 10_keyboard.zshrc: Initialize keyboard settings
3
4 bindkey -e
5
6 bindkey "^[[3~" delete-char
7 bindkey "^[3;5~" delete-char
8 bindkey "\e[3~" delete-char
9
10 # Allow editing of the current command line in $EDITOR
11 autoload -Uz edit-command-line
12 zle -N edit-command-line
13 bindkey '\C-x\C-e' edit-command-line
14
15 # Move to where the arguments belong.
16 after-first-word() {
17         zle beginning-of-line
18         zle forward-word
19 }
20 zle -N after-first-word
21 bindkey "\C-x1" after-first-word
22
23 # Push back current line.
24 bindkey '\C-x\C-p' push-line