You might find out your shell does not respond to your esc + k which can reuse the historical commands in KSH just like ↑ in bash. This is because the default EDITOR in your shell has not been set.
There're several ways to solve this:
- For session-scope only:
- For single user:
- For all users:
$ set -o vi
$ vi ~/.profile
...
export EDITOR=vi
$ vi /etc/profile
...
export EDITOR=vi