Files
cdesktop/docs/ksh/functions/vi_keybind.txt
Jon Trulson 12bbb66931 Squashed 'cde/programs/dtksh/ksh93/' content from commit 66e1d4464
git-subtree-dir: cde/programs/dtksh/ksh93
git-subtree-split: 66e1d446429543be0f9d47d9364e472932dc53f1
2021-06-26 13:39:31 -06:00

11 lines
263 B
Plaintext

typeset -A Keytable
trap 'eval "${Keytable[${.sh.edchar}]}"' KEYBD
function vi_keybind
{
keybind $'\E[A' k # Up key
keybind $'\E[B' j # Down key
keybind $'\E[C' l # Right key
keybind $'\E[D' h # Left key
keybind $'\t' '\' # Tab for command-line completion
}