X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=zsh%2Frc;h=7ccbe91e1766df634eedaf45b1a5a50c058cb1d3;hb=17c4bdffc7d5914f39932f4b2cb1a0791d227a00;hp=f55df48041f61980ff2d982ce52a3a53b06c6434;hpb=472231df37f6e5e46d41e569a58aafd645adf1c1;p=config%2Fdotfiles.git diff --git a/zsh/rc b/zsh/rc index f55df48..7ccbe91 100644 --- a/zsh/rc +++ b/zsh/rc @@ -37,6 +37,14 @@ setopt ignoreeof # Use Vi(m) style key bindings. bindkey -v +# Also use jj to exit insert mode. +bindkey 'jj' vi-cmd-mode + +# I don't need the arrow keys, I use ^N and ^P for this (see below). +bindkey -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' +# Also not in Vi mode. +bindkey -a -r '^[OA' '^[OB' '^[OC' '^[OD' '^[[A' '^[[B' '^[[C' '^[[D' + # FUNCTION SETTINGS @@ -339,6 +347,9 @@ if [[ $TERM == screen* || $TERM == xterm* || $TERM == rxvt* ]]; then window_title() { print -n "\e]2;$1\e\\" } + else + # Fallback if another TERM is used. + window_title() { } fi # Add the preexec() and precmd() hooks.